aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-23 10:00:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-23 10:01:36 +0200
commite36115d6889309d3deacc125d766221fe6cea0ca (patch)
tree0619c8cfb0284360992fd4f0b19ad166041f9fc8
parent4cb7aa067cb3fb01601dd5d164be8cefe6042211 (diff)
Curl_rand: Uninitialized variable: r
This is not actually used uninitialized but we silence warnings. Bug: http://curl.haxx.se/bug/view.cgi?id=1437 Reported-by: Julien
-rw-r--r--lib/vtls/vtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index fd025b1da..6c1fdc861 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -183,7 +183,7 @@ void Curl_free_ssl_config(struct ssl_config_data* sslc)
unsigned int Curl_rand(struct SessionHandle *data)
{
- unsigned int r;
+ unsigned int r = 0;
static unsigned int randseed;
static bool seeded = FALSE;