aboutsummaryrefslogtreecommitdiff
path: root/src/pj_apply_gridshift.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-03-12 23:49:01 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-03-14 20:25:12 +0100
commit6459f4fe68e38fba7cb2000523843d5fa84332cc (patch)
treeb11fdac013bc9f1b9afcbadfd002d28a303084ed /src/pj_apply_gridshift.c
parenta49738902a27624d835e5a6b9983a9803c322996 (diff)
downloadPROJ-6459f4fe68e38fba7cb2000523843d5fa84332cc.tar.gz
PROJ-6459f4fe68e38fba7cb2000523843d5fa84332cc.zip
Workaround false positive older cppcheck warning about null pointer dereference
Diffstat (limited to 'src/pj_apply_gridshift.c')
-rw-r--r--src/pj_apply_gridshift.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pj_apply_gridshift.c b/src/pj_apply_gridshift.c
index a2267cbd..c503ec0b 100644
--- a/src/pj_apply_gridshift.c
+++ b/src/pj_apply_gridshift.c
@@ -206,10 +206,10 @@ int pj_apply_gridshift_3( projCtx ctx, PJ_GRIDINFO **tables, int grid_count,
if( ct != NULL )
{
output = nad_cvt( input, inverse, ct );
- }
- if ( output.lam != HUGE_VAL && debug_count++ < 20 )
- pj_log( ctx, PJ_LOG_DEBUG_MINOR, "pj_apply_gridshift(): used %s", ct->id );
+ if ( output.lam != HUGE_VAL && debug_count++ < 20 )
+ pj_log( ctx, PJ_LOG_DEBUG_MINOR, "pj_apply_gridshift(): used %s", ct->id );
+ }
if ( output.lam == HUGE_VAL )
{