From eabaee8eb58c557743b8b1b476b4145b97eb9836 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 15 May 2014 17:04:26 -0700 Subject: [PATCH] A truly ancient bug, discovered with an Xcode-5.1 compiler warning. --- src/libqof/qof/gnc-date.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libqof/qof/gnc-date.cpp b/src/libqof/qof/gnc-date.cpp index e99a7e6802..002e0bceb3 100644 --- a/src/libqof/qof/gnc-date.cpp +++ b/src/libqof/qof/gnc-date.cpp @@ -1353,7 +1353,7 @@ char dateSeparator (void) gnc_localtime_r(&secs, &tm); qof_strftime(string, sizeof(string), GNC_D_FMT, &tm); - for (s = string; s != '\0'; s++) + for (s = string; *s != '\0'; s++) if (!isdigit(*s)) return (locale_separator = *s); }