summaryrefslogtreecommitdiff
path: root/tests/libtest/lib539.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib539.c')
-rw-r--r--tests/libtest/lib539.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib539.c b/tests/libtest/lib539.c
index cd65e587e..0b2e97f4e 100644
--- a/tests/libtest/lib539.c
+++ b/tests/libtest/lib539.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -60,14 +60,14 @@ int test(char *URL)
* call to freedirs).
*/
newURL = aprintf("%s./", URL);
- if(newURL == NULL) {
+ if(!newURL) {
curl_easy_cleanup(curl);
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD;
}
slist = curl_slist_append(NULL, "SYST");
- if(slist == NULL) {
+ if(!slist) {
free(newURL);
curl_easy_cleanup(curl);
curl_global_cleanup();