]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1517: checksrc compliance
authorDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2016 10:27:22 +0000 (12:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2016 10:27:39 +0000 (12:27 +0200)
tests/libtest/lib1517.c

index ad111ded475016f64b824fd668c5dbd850a78889..e270ed74d63b4ef646ea0735b5906037e063adc0 100644 (file)
@@ -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;