diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-01-14 03:36:53 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-01-14 03:36:53 +0000 |
commit | d27e1bd2eee2adb46d34d76ccd70ebba53abf12c (patch) | |
tree | e86ce0dc25e634ea5316b229f34b76b36f315b1e /libsylph/utils.c | |
parent | 7720989aafe390fb690f2aa52fc06da0de33688b (diff) |
Fixed the bug that IMAP caches get wrongly deleted.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2427 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/utils.c')
-rw-r--r-- | libsylph/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |