mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
rand: Fix potentially uninitialized result warning
This commit is contained in:
parent
c0ae2dbb86
commit
8626632f3e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user