Skip to content

Commit

Permalink
PJ_ob_tran: avoid null pointer dereference when underling fwd method …
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 11, 2017
1 parent d53581a commit fd1700e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PJ_ob_tran.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ PJ *PROJECTION(ob_tran) {
if (fabs(phip) > TOL) { /* oblique */
Q->cphip = cos(phip);
Q->sphip = sin(phip);
P->fwd = o_forward;
P->fwd = Q->link->fwd ? o_forward : 0;
P->inv = Q->link->inv ? o_inverse : 0;
} else { /* transverse */
P->fwd = t_forward;
P->fwd = Q->link->fwd ? t_forward : 0;
P->inv = Q->link->inv ? t_inverse : 0;
}

Expand Down

0 comments on commit fd1700e

Please sign in to comment.