diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 21:04:16 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 21:04:16 +0100 |
| commit | e11b5da023febe3425e92cdfbf32ef586469fbb5 (patch) | |
| tree | ab0137f47f8ff077a4be2c16c5152bcbc76ed019 /src | |
| parent | 571036eab124920cdffcb73c37965e0a3a065938 (diff) | |
| download | PROJ-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.c | 6 |
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(); |
