aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-03-12 21:04:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-03-12 21:04:16 +0100
commite11b5da023febe3425e92cdfbf32ef586469fbb5 (patch)
treeab0137f47f8ff077a4be2c16c5152bcbc76ed019 /src
parent571036eab124920cdffcb73c37965e0a3a065938 (diff)
downloadPROJ-e11b5da023febe3425e92cdfbf32ef586469fbb5.tar.gz
PROJ-e11b5da023febe3425e92cdfbf32ef586469fbb5.zip
Fix 'Either the condition 'fromProj!=0' is redundant or there is possible null pointer dereference: fromProj' cppcheck warning
Diffstat (limited to 'src')
-rw-r--r--src/cs2cs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cs2cs.c b/src/cs2cs.c
index 730d37ee..b7e0ab7f 100644
--- a/src/cs2cs.c
+++ b/src/cs2cs.c
@@ -446,10 +446,8 @@ int main(int argc, char **argv)
emess_dat.File_name = 0;
}
- if( fromProj != NULL )
- pj_free( fromProj );
- if( toProj != NULL )
- pj_free( toProj );
+ pj_free( fromProj );
+ pj_free( toProj );
pj_deallocate_grids();