diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-09-06 11:00:57 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-09-06 18:01:34 +0000 |
commit | 595610f9cc2a27f0eb495c2513499e615666cf7e (patch) | |
tree | cca4b9b9772a0917509978f9c8e9b0d3e8faea94 /wsutil/strtoi.c | |
parent | 295dbc609dab17d396a69e460ac956151d3ef32d (diff) |
Always set *cint before returning.
Change-Id: I333aef7d3fe4ad3bf7c2a4d7318766fcbd2e4cd2
Reviewed-on: https://code.wireshark.org/review/17539
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/strtoi.c')
-rw-r--r-- | wsutil/strtoi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wsutil/strtoi.c b/wsutil/strtoi.c index f68d9d3a8e..96683d9d43 100644 --- a/wsutil/strtoi.c +++ b/wsutil/strtoi.c @@ -61,6 +61,7 @@ gboolean ws_strtou64(const gchar* str, guint64* cint) /* * Unsigned numbers don't have a sign. */ + *cint = 0; errno = EINVAL; return FALSE; } |