]> git.ipfire.org Git - thirdparty/curl.git/commit
setopt: warn on Curl_set*opt() uses not using the return value
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 May 2024 21:50:58 +0000 (23:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 May 2024 15:27:51 +0000 (17:27 +0200)
commitefe93019a707783cc7dd14c37c01ac598ee6d921
treefc3746e29437874654c680a66d9326b27f761c2a
parentc8925f3ec3465760b2468a8a7c4a377f1b5a41dc
setopt: warn on Curl_set*opt() uses not using the return value

And switch the invokes that would "set" NULL to instead just plainly
free the pointer, as those were otherwise the invokes that would ignore
the return code. And possibly confuse static code analyzers.

Closes #13591
lib/setopt.c
lib/setopt.h