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
1 changed files with 1 additions and 1 deletions

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 result;
CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
int i;
assert(num > 0);