Skip to content

Commit 155463c

Browse files
Update libcurl.c
1 parent b9513d3 commit 155463c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/cfg/libcurl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@
1212
#include <curl/curl.h>
1313
#include <stdio.h>
1414

15+
struct S_WriteHeader {
16+
int x;
17+
};
18+
1519
void validCode()
1620
{
1721
CURL *curl = curl_easy_init();
1822
if (curl) {
1923
CURLcode res;
2024
// cppcheck-suppress valueFlowBailoutIncompleteVar
2125
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
26+
struct S_WriteHeader s;
27+
curl_easy_setopt(handle, CURLOPT_WRITEHEADER, &s); // #14692
2228
res = curl_easy_perform(curl);
2329
if (res != CURLE_OK) {
2430
printf("error");

0 commit comments

Comments
 (0)