]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rand: Fix potentially uninitialized result warning
authorJay Satiro <raysatiro@yahoo.com>
Mon, 21 Nov 2016 04:57:47 +0000 (23:57 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 21 Nov 2016 04:57:47 +0000 (23:57 -0500)
lib/rand.c

index 107a1dd4a50487e55c5dcb88853eaf02dc4418fa..342796513f88282962189eb198fbe45a9e1708c1 100644 (file)
@@ -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);