From 4330f9fa4391b4d39c52c972c75327ed2ba6ce33 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 28 Oct 2019 09:03:10 +0100 Subject: Various fixes/workarounds to make cppcheck 1.72 (Ubuntu 16.04) and HEAD/1.90dev happy (fixes #1648) --- src/apps/optargpm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/apps/optargpm.h') diff --git a/src/apps/optargpm.h b/src/apps/optargpm.h index f293ad98..4e8dd9c7 100644 --- a/src/apps/optargpm.h +++ b/src/apps/optargpm.h @@ -286,9 +286,7 @@ int opt_input_loop (OPTARGS *opt, int binary) { return 1; /* ignore non-existing files - go on! */ - if (nullptr==opt->input) - return opt_input_loop (opt, binary); - return 0; + return opt_input_loop (opt, binary); } -- cgit v1.2.3