aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sendf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index e289e2046..934fad1bb 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -273,7 +273,7 @@ CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *conn,
struct SessionHandle *data = conn->data;
ssize_t bytes_written;
size_t write_len;
- CURLcode res;
+ CURLcode res = CURLE_OK;
char *s;
char *sptr;
va_list ap;