summaryrefslogtreecommitdiff
path: root/lib/rand.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-11-20 23:57:47 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-11-20 23:57:47 -0500
commit8626632f3e1a3f8edb48187f73b7633334bf09e5 (patch)
tree0628c6a1a8d2f3b22541373187ea6921d58fbb0c /lib/rand.c
parentc0ae2dbb869bf97d273ae0a4cb66caa020876d0f (diff)
downloadcurl-8626632f3e1a3f8edb48187f73b7633334bf09e5.tar.gz
rand: Fix potentially uninitialized result warning
Diffstat (limited to 'lib/rand.c')
-rw-r--r--lib/rand.c2
1 files changed, 1 insertions, 1 deletions
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);