From: Vsevolod Stakhov Date: Fri, 11 Mar 2016 09:19:08 +0000 (+0000) Subject: [Minor] Set value even if a string cannot be converted to a number X-Git-Tag: 1.2.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95db8d24f01a186fecf24551209a6ec71c26068b;p=thirdparty%2Frspamd.git [Minor] Set value even if a string cannot be converted to a number --- diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 5f4cd1c1ef..d79519c888 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -435,6 +435,8 @@ rspamd_strtoul (const gchar *s, gsize len, gulong *value) } } else { + *value = v; + return FALSE; } p++;