rand: Fix potentially uninitialized result warning

This commit is contained in:
Jay Satiro 2016-11-20 23:57:47 -05:00
parent c0ae2dbb86
commit 8626632f3e

View 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 Curl_rand(struct Curl_easy *data, unsigned int *rndptr, int num)
{ {
CURLcode result; CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
int i; int i;
assert(num > 0); assert(num > 0);