From: Kvarec Lezki Date: Thu, 2 Feb 2023 11:16:01 +0000 (+0500) Subject: fopen: remove unnecessary assignment X-Git-Tag: curl-7_88_0~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74040ddecb6e25ae81a2a38acc10950d4529bb8d;p=thirdparty%2Fcurl.git fopen: remove unnecessary assignment [CWE-1164] V1048: The '* tempname' variable was assigned the same value. Ref: https://pvs-studio.com/en/docs/warnings/v1048/ Closes https://github.com/curl/curl/pull/10398 --- diff --git a/lib/fopen.c b/lib/fopen.c index 52e97e5515..f710dbf05a 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -106,7 +106,6 @@ fail: free(tempstore); - *tempname = NULL; return result; }