Skip to content

Commit

Permalink
Merge pull request #792 from kbevers/fix-ntv2-subgrid-segfault
Browse files Browse the repository at this point in the history
Add missing ! in boolean evaluation. Fixes #780.
  • Loading branch information
kbevers committed Feb 11, 2018
2 parents 39789cb + 332bf64 commit 4bbb3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pj_gridinfo.c
Expand Up @@ -564,7 +564,7 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist )

gi->gridname = pj_strdup( gilist->gridname );
gi->filename = pj_strdup( gilist->filename );
if (!gi->gridname || gi->filename) {
if (!gi->gridname || !gi->filename) {
pj_gridinfo_free(ctx, gi);
pj_dalloc(ct);
pj_gridinfo_free(ctx, gilist);
Expand Down

0 comments on commit 4bbb3df

Please sign in to comment.