gnucash master: A truly ancient bug, discovered with an Xcode-5.1 compiler warning.
John Ralls
jralls at code.gnucash.org
Mon May 19 19:07:47 EDT 2014
Updated via https://github.com/Gnucash/gnucash/commit/eabaee8e (commit)
from https://github.com/Gnucash/gnucash/commit/6e62ce99 (commit)
commit eabaee8eb58c557743b8b1b476b4145b97eb9836
Author: John Ralls <jralls at ceridwen.us>
Date: Thu May 15 17:04:26 2014 -0700
A truly ancient bug, discovered with an Xcode-5.1 compiler warning.
diff --git a/src/libqof/qof/gnc-date.cpp b/src/libqof/qof/gnc-date.cpp
index e99a7e6..002e0bc 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);
}
Summary of changes:
src/libqof/qof/gnc-date.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list