aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-04 15:21:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-04 15:21:39 +0200
commitc2791caf53826e1dfa20483fee493033594caefc (patch)
treeadddd6a8cf2160e8d17e3339054bccebef8ff3d4
parentd94717e0990062a3f1318180009a266314b7409e (diff)
Curl_sec_read_msg: spell out that we ignore return code
Coverity CID 1241947. Since if sscanf() fails, the previously set value remains set.
-rw-r--r--lib/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/security.c b/lib/security.c
index 508c7b41e..cc3cc35d2 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -10,7 +10,7 @@
* Copyright (c) 1998, 1999, 2013 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
*
- * Copyright (C) 2001 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2001 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* All rights reserved.
*
@@ -402,7 +402,7 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer,
ret_code = 0;
else {
/* Check for error? */
- sscanf(buf, "%d", &ret_code);
+ (void)sscanf(buf, "%d", &ret_code);
}
if(buf[decoded_len - 1] == '\n')