Suppress warning "'nread' might be used uninitialized in this function".
authorGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 12:18:22 +0000 (12:18 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 12:18:22 +0000 (12:18 +0000)
lib/sendf.c

index 65f137b..a7ed815 100644 (file)
@@ -471,7 +471,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
               size_t sizerequested,     /* max amount to read */
               ssize_t *n)               /* amount bytes read */
 {
-  ssize_t nread;
+  ssize_t nread = 0;
   size_t bytesfromsocket = 0;
   char *buffertofill = NULL;
   bool pipelining = (bool)(conn->data->multi &&