X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Flibtest%2Flib1530.c;h=6fc69f25103311f5aa251f92dc9cb495bdf13458;hb=e9bdad71c8277e20607fa1eaf0027d53a0dc1f37;hp=d1ca34c2a512769a683fa5d72fcee7e9265a647d;hpb=3e62527ed71a7a362d7ec321e7f026edab35f8e2;p=platform%2Fupstream%2Fcurl.git diff --git a/tests/libtest/lib1530.c b/tests/libtest/lib1530.c index d1ca34c..6fc69f2 100644 --- a/tests/libtest/lib1530.c +++ b/tests/libtest/lib1530.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -46,7 +46,8 @@ int test(char *URL) 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;