summaryrefslogtreecommitdiff
path: root/tests/libtest/lib1536.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib1536.c')
-rw-r--r--tests/libtest/lib1536.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib1536.c b/tests/libtest/lib1536.c
index 2396ed9a9..b047c9d76 100644
--- a/tests/libtest/lib1536.c
+++ b/tests/libtest/lib1536.c
@@ -69,7 +69,7 @@ int test(char *URL)
__FILE__, __LINE__, res, curl_easy_strerror(res));
goto test_cleanup;
}
- if(scheme == NULL || memcmp(scheme, "HTTP", 5) != 0) {
+ if(!scheme || memcmp(scheme, "HTTP", 5) != 0) {
fprintf(stderr, "%s:%d scheme of http resource is incorrect; "
"expected 'HTTP' but is %s\n",
__FILE__, __LINE__,
@@ -95,7 +95,7 @@ int test(char *URL)
__FILE__, __LINE__, res, curl_easy_strerror(res));
goto test_cleanup;
}
- if(scheme != 0) {
+ if(scheme) {
fprintf(stderr, "%s:%d scheme init failed; expected NULL\n",
__FILE__, __LINE__);
res = CURLE_FAILED_INIT;
@@ -114,7 +114,7 @@ int test(char *URL)
__FILE__, __LINE__, res, curl_easy_strerror(res));
goto test_cleanup;
}
- if(scheme != 0) {
+ if(scheme) {
fprintf(stderr, "%s:%d scheme init failed; expected NULL\n",
__FILE__, __LINE__);
res = CURLE_FAILED_INIT;