Bläddra i källkod

curl, bzip2: Suppress warnings by setting initial value

Silence clang -Wsometimes-uninitialized warnings.
Sean McBride 12 år sedan
förälder
incheckning
af0051f48a
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      Utilities/cmbzip2/compress.c
  2. 1 1
      Utilities/cmcurl/multi.c

+ 1 - 1
Utilities/cmbzip2/compress.c

@@ -239,7 +239,7 @@ static
 void sendMTFValues ( EState* s )
 {
    Int32 v, t, i, j, gs, ge, totc, bt, bc, iter;
-   Int32 nSelectors, alphaSize, minLen, maxLen, selCtr;
+   Int32 nSelectors = 0, alphaSize, minLen, maxLen, selCtr;
    Int32 nGroups, nBytes;
 
    /*--

+ 1 - 1
Utilities/cmcurl/multi.c

@@ -763,7 +763,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
   struct Curl_message *msg = NULL;
   bool connected;
   bool async;
-  bool protocol_connect;
+  bool protocol_connect = 0;
   bool dophase_done;
   bool done;
   CURLMcode result = CURLM_OK;