Skip to content

Commit

Permalink
make cppcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Apr 17, 2024
1 parent 607c784 commit e6a2470
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/gdalinfo_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2289,11 +2289,16 @@ GDALInfoOptionsNew(char **papszArgv,
/* -------------------------------------------------------------------- */

CPLStringList aosArgv;
const int nArgc = CSLCount(papszArgv);
for (int i = 0; i < nArgc; i++)

if (papszArgv)
{
aosArgv.AddString(papszArgv[i]);
const int nArgc = CSLCount(papszArgv);
for (int i = 0; i < nArgc; i++)
{
aosArgv.AddString(papszArgv[i]);
}
}

try
{
auto argParser =
Expand Down

0 comments on commit e6a2470

Please sign in to comment.