diff --git a/lib/sendf.c b/lib/sendf.c index 65f137b05f..a7ed815818 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 &&