projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f4842
)
test1513: Don't return an uninitialized variable on init failure
author
Dan Fandrich
<dan@coneharvesters.com>
Mon, 5 May 2014 13:29:23 +0000
(15:29 +0200)
committer
Dan Fandrich
<dan@coneharvesters.com>
Mon, 5 May 2014 13:29:23 +0000
(15:29 +0200)
tests/libtest/lib1513.c
patch
|
blob
|
history
diff --git
a/tests/libtest/lib1513.c
b/tests/libtest/lib1513.c
index
f97ca52
..
aefb577
100644
(file)
--- 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);
- res
ult
= 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
;
}