]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
fopen: remove unnecessary assignment
authorKvarec Lezki <cuarzo@ya.ru>
Thu, 2 Feb 2023 11:16:01 +0000 (16:16 +0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 5 Feb 2023 08:15:08 +0000 (03:15 -0500)
[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

lib/fopen.c

index 52e97e551564abb2967f5f0f949fe9008d61c7c1..f710dbf05ae1d9354e6cc83fbba353849e537c6f 100644 (file)
@@ -106,7 +106,6 @@ fail:
 
   free(tempstore);
 
-  *tempname = NULL;
   return result;
 }