We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9513d3 commit 155463cCopy full SHA for 155463c
1 file changed
test/cfg/libcurl.c
@@ -12,13 +12,19 @@
12
#include <curl/curl.h>
13
#include <stdio.h>
14
15
+struct S_WriteHeader {
16
+ int x;
17
+};
18
+
19
void validCode()
20
{
21
CURL *curl = curl_easy_init();
22
if (curl) {
23
CURLcode res;
24
// cppcheck-suppress valueFlowBailoutIncompleteVar
25
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
26
+ struct S_WriteHeader s;
27
+ curl_easy_setopt(handle, CURLOPT_WRITEHEADER, &s); // #14692
28
res = curl_easy_perform(curl);
29
if (res != CURLE_OK) {
30
printf("error");
0 commit comments