From 58d59c3617c3046509b43bc9716f560cd8cea8b9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 6 Mar 2021 23:28:16 +0100 Subject: cct: remove useless nullptr checking (CID 314822) --- src/apps/cct.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/apps/cct.cpp') diff --git a/src/apps/cct.cpp b/src/apps/cct.cpp index 4f21f10a..ca62c570 100644 --- a/src/apps/cct.cpp +++ b/src/apps/cct.cpp @@ -455,7 +455,7 @@ int main(int argc, char **argv) { size_t len = strlen(comment); if (len >= 1) comment[len - 1] = '\0'; - comment_delimiter = (comment && *comment) ? whitespace : blank_comment; + comment_delimiter = *comment ? whitespace : blank_comment; /* Time to print the result */ /* use same arguments to printf format string for both radians and -- cgit v1.2.3