diff options
Diffstat (limited to 'tests/libtest/lib582.c')
-rw-r--r-- | tests/libtest/lib582.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c index caaefe0bf..031793d6a 100644 --- a/tests/libtest/lib582.c +++ b/tests/libtest/lib582.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 @@ -151,7 +151,7 @@ static int checkForCompletion(CURLM *curl, int *success) CURLMsg *message; int result = 0; *success = 0; - while((message = curl_multi_info_read(curl, &numMessages)) != NULL) { + while((message = curl_multi_info_read(curl, &numMessages))) { if(message->msg == CURLMSG_DONE) { result = 1; if(message->data.result == CURLE_OK) @@ -242,7 +242,7 @@ int test(char *URL) } hd_src = fopen(libtest_arg2, "rb"); - if(NULL == hd_src) { + if(!hd_src) { fprintf(stderr, "fopen() failed with error: %d (%s)\n", errno, strerror(errno)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg2); |