From: Daniel Stenberg Date: Sat, 4 Oct 2014 13:21:39 +0000 (+0200) Subject: Curl_sec_read_msg: spell out that we ignore return code X-Git-Tag: curl-7_39_0~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2791caf53826e1dfa20483fee493033594caefc;p=thirdparty%2Fcurl.git Curl_sec_read_msg: spell out that we ignore return code Coverity CID 1241947. Since if sscanf() fails, the previously set value remains set. --- diff --git a/lib/security.c b/lib/security.c index 508c7b41ec..cc3cc35d2f 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, , et al. + * Copyright (C) 2001 - 2014, Daniel Stenberg, , 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')