1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05:00

cookie_interface: fix -Wcomma warning

clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]
This commit is contained in:
Marcel Raad 2017-05-11 09:59:56 +02:00
parent b875250e32
commit 77b90997dd
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -47,7 +47,8 @@ print_cookies(CURL *curl)
curl_easy_strerror(res)); curl_easy_strerror(res));
exit(1); exit(1);
} }
nc = cookies, i = 1; nc = cookies;
i = 1;
while(nc) { while(nc) {
printf("[%d]: %s\n", i, nc->data); printf("[%d]: %s\n", i, nc->data);
nc = nc->next; nc = nc->next;