]> granicus.if.org Git - curl/commitdiff
Fix "'x' might be used uninitialized in this function" warnings.
authorGisle Vanem <gvanem@broadpark.no>
Sat, 10 Jun 2006 17:35:28 +0000 (17:35 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sat, 10 Jun 2006 17:35:28 +0000 (17:35 +0000)
tests/libtest/lib505.c
tests/libtest/lib507.c

index dc82e2d8f2cf6b09dbb8d7d38ae1f2ce2147aebd..7de0bc1e9aad252d7da45db1fc360814a3cb4af8 100644 (file)
@@ -38,7 +38,7 @@
 int test(char *URL)
 {
   CURL *curl;
-  CURLcode res;
+  CURLcode res = CURLE_OK;
   FILE *hd_src ;
   int hd ;
   struct_stat file_info;
index b16c23368a50e20cf5627edda0165c1402a57bc1..4e776ec4ac3380b97257722c3ebfa40cd9c2cc77 100644 (file)
@@ -5,7 +5,7 @@ int test(char *URL)
   CURL* curls;
   CURLM* multi;
   int still_running;
-  int i;
+  int i = -1;
   CURLMsg *msg;
 
   multi = curl_multi_init();