From c2791caf53826e1dfa20483fee493033594caefc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Oct 2014 15:21:39 +0200 Subject: [PATCH] Curl_sec_read_msg: spell out that we ignore return code Coverity CID 1241947. Since if sscanf() fails, the previously set value remains set. --- lib/security.c | 4 ++-- 1 file 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, , 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')