summaryrefslogtreecommitdiff
path: root/wsutil
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-06 11:00:57 -0700
committerGuy Harris <guy@alum.mit.edu>2016-09-06 18:01:34 +0000
commit595610f9cc2a27f0eb495c2513499e615666cf7e (patch)
treecca4b9b9772a0917509978f9c8e9b0d3e8faea94 /wsutil
parent295dbc609dab17d396a69e460ac956151d3ef32d (diff)
downloadwireshark-595610f9cc2a27f0eb495c2513499e615666cf7e.tar.gz
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')
-rw-r--r--wsutil/strtoi.c1
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;
}