summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-01-28 10:09:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-01-28 10:10:59 +0100
commit9d964e5477c50d0c702f27e8297d242a81cec304 (patch)
treeb39ec4e05439bbbdb5d1579b8464755e8e77b141 /lib/security.c
parent153e9c0278f426c4de5b2741c0895ba80e73d3fa (diff)
downloadcurl-9d964e5477c50d0c702f27e8297d242a81cec304.tar.gz
security: avoid compiler warning
Possible access to uninitialised memory '&nread' at line 140 of lib/security.c in function 'ftp_send_command'. Reported-by: Rich Burridge
Diffstat (limited to 'lib/security.c')
-rw-r--r--lib/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/security.c b/lib/security.c
index 607048cc1..70198ac05 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -7,10 +7,10 @@
* rewrite to work around the paragraph 2 in the BSD licenses as explained
* below.
*
- * Copyright (c) 1998, 1999, 2013 Kungliga Tekniska Högskolan
+ * Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
*
- * Copyright (C) 2001 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2001 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* All rights reserved.
*
@@ -121,7 +121,7 @@ static const struct Curl_sec_client_mech * const mechs[] = {
static int ftp_send_command(struct connectdata *conn, const char *message, ...)
{
int ftp_code;
- ssize_t nread;
+ ssize_t nread=0;
va_list args;
char print_buffer[50];