diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | libsylph/utils.c | 4 |
3 files changed, 12 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2010-01-14 + + * libsylph/utils.c: to_unumber(); return 0 on error (-1 will return + UINT_MAX). Fixes the bug that IMAP caches get wrongly deleted. + 2010-01-13 * version 3.0.0beta5 @@ -1,5 +1,10 @@ Changes of Sylpheed +* 3.0.0beta6 (development) + + * The bug that IMAP caches get wrongly deleted was fixed. + * The copyright year was updated. + * 3.0.0beta5 (development) * The feature to customize the color label text was added. diff --git a/libsylph/utils.c b/libsylph/utils.c index 6abbefa2..861fb7e2 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -319,10 +319,10 @@ guint to_unumber(const gchar *nstr) register const gchar *p; gulong val; - if (*nstr == '\0') return -1; + if (*nstr == '\0') return 0; for (p = nstr; *p != '\0'; p++) - if (!g_ascii_isdigit(*p)) return -1; + if (!g_ascii_isdigit(*p)) return 0; errno = 0; val = strtoul(nstr, NULL, 10); |