]> granicus.if.org Git - curl/commitdiff
cookie_interface: fix -Wcomma warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 May 2017 07:59:56 +0000 (09:59 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 May 2017 08:04:01 +0000 (10:04 +0200)
clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]

docs/examples/cookie_interface.c

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