aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-04 12:18:22 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-04 12:18:22 +0000
commit6a175b42dbbf78dd77e8522218b8f5e6f72b9244 (patch)
tree14634d9129eea588f41727d19108b4e55c922616 /lib/sendf.c
parenta7748c20246842fa9f964692d05c7e50ed6b5ad0 (diff)
Suppress warning "'nread' might be used uninitialized in this function".
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 65f137b05..a7ed81581 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -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 &&