diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-04-24 12:27:22 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-24 12:27:39 +0200 |
commit | 6de32d916fd8495a73002d063d820b4a557a02b3 (patch) | |
tree | 578922e39b16c0d960d293975f2d337141c16598 /tests | |
parent | 33623d7196dd95bfeeb2b4008911459aa165d876 (diff) |
lib1517: checksrc compliance
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib1517.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/libtest/lib1517.c b/tests/libtest/lib1517.c index ad111ded4..e270ed74d 100644 --- a/tests/libtest/lib1517.c +++ b/tests/libtest/lib1517.c @@ -61,12 +61,13 @@ int test(char *URL) pooh.readptr = data; pooh.sizeleft = strlen(data); - if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { + if(curl_global_init(CURL_GLOBAL_ALL)) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } - if ((curl = curl_easy_init()) == NULL) { + curl = curl_easy_init(); + if(!curl) { fprintf(stderr, "curl_easy_init() failed\n"); curl_global_cleanup(); return TEST_ERR_MAJOR_BAD; |