diff options
| author | Dan Fandrich <dan@coneharvesters.com> | 2014-05-05 15:29:23 +0200 | 
|---|---|---|
| committer | Dan Fandrich <dan@coneharvesters.com> | 2014-05-05 15:29:23 +0200 | 
| commit | 40e6af893b9a342e41ac5d0e1b63bfc21c5929bf (patch) | |
| tree | f187d6decc92d2028b2270ef9bf5914af0e23d06 /tests/libtest | |
| parent | 37f484276d863347df2616ead1524bffc2257098 (diff) | |
test1513: Don't return an uninitialized variable on init failure
Diffstat (limited to 'tests/libtest')
| -rw-r--r-- | tests/libtest/lib1513.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/tests/libtest/lib1513.c b/tests/libtest/lib1513.c index f97ca5233..aefb57734 100644 --- a/tests/libtest/lib1513.c +++ b/tests/libtest/lib1513.c @@ -47,7 +47,6 @@ static int progressKiller(void *arg,  int test(char *URL)  {    CURL *curl; -  CURLcode result;    int res=0;    global_init(CURL_GLOBAL_ALL); @@ -61,7 +60,7 @@ int test(char *URL)    easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL);    easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0); -  result = curl_easy_perform(curl); +  res = curl_easy_perform(curl);  test_cleanup: @@ -70,5 +69,5 @@ test_cleanup:    curl_easy_cleanup(curl);    curl_global_cleanup(); -  return (int)result; +  return res;  } | 
