make expression logical for cppcheck

This commit is contained in:
Mark Andrews
2020-01-30 17:57:25 +11:00
committed by Ondřej Surý
parent 7b948c7335
commit f17b9b8dd1

View File

@@ -97,7 +97,7 @@ int main(int argc, char **argv)
UNUSED(argc);
UNUSED(argv);
target = target ? target + 1 : argv[0];
target = (target != NULL) ? target + 1 : argv[0];
if (strncmp(target, "lt-", 3) == 0) {
target += 3;
}