projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7748c2
)
Suppress warning "'nread' might be used uninitialized in this function".
author
Gisle Vanem
<gvanem@broadpark.no>
Sun, 4 Feb 2007 12:18:22 +0000
(12:18 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Sun, 4 Feb 2007 12:18:22 +0000
(12:18 +0000)
lib/sendf.c
patch
|
blob
|
history
diff --git
a/lib/sendf.c
b/lib/sendf.c
index
65f137b
..
a7ed815
100644
(file)
--- 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 &&