make expression logical for cppcheck

(cherry picked from commit f17b9b8dd1)
This commit is contained in:
Mark Andrews 2020-01-30 17:57:25 +11:00 committed by Matthijs Mekking
parent 8251141baa
commit 4217930699

View file

@ -99,7 +99,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;
}