From 6459f4fe68e38fba7cb2000523843d5fa84332cc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 12 Mar 2018 23:49:01 +0100 Subject: Workaround false positive older cppcheck warning about null pointer dereference --- src/pj_apply_gridshift.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 ) { -- cgit v1.2.3