diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-05 09:37:53 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-05 13:03:43 +0100 |
commit | 4ed62bc0dc157809372659221872a7df61701130 (patch) | |
tree | c850f6d7277bd84ffa61ea6edeb50fcad61037a9 /lib/security.c | |
parent | 39c29626cbf5cdce5d41d0301ba67eeced2a922a (diff) |
source: fix two 'nread' may be used uninitialized warnings
Both seem to be false positives but we don't like warnings.
Closes #3646
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/security.c b/lib/security.c index 7f13071f6..eec6e6f44 100644 --- a/lib/security.c +++ b/lib/security.c @@ -10,7 +10,7 @@ * Copyright (c) 1998, 1999, 2017 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * - * Copyright (C) 2001 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2001 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * All rights reserved. * @@ -142,7 +142,7 @@ socket_read(curl_socket_t fd, void *to, size_t len) { char *to_p = to; CURLcode result; - ssize_t nread; + ssize_t nread = 0; while(len > 0) { result = Curl_read_plain(fd, to_p, len, &nread); |