From 8626632f3e1a3f8edb48187f73b7633334bf09e5 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 20 Nov 2016 23:57:47 -0500 Subject: rand: Fix potentially uninitialized result warning --- lib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rand.c b/lib/rand.c index 107a1dd4a..342796513 100644 --- a/lib/rand.c +++ b/lib/rand.c @@ -115,7 +115,7 @@ static CURLcode randit(struct Curl_easy *data, unsigned int *rnd) CURLcode Curl_rand(struct Curl_easy *data, unsigned int *rndptr, int num) { - CURLcode result; + CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT; int i; assert(num > 0); -- cgit v1.2.3