Skip to content

Commit

Permalink
Fix breakage of previous commit (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 11, 2018
1 parent a00d13a commit 2991658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PJ_axisswap.c
Expand Up @@ -192,7 +192,7 @@ PJ *CONVERSION(axisswap,0) {
/* read axes numbers and signs */
for ( s = order, n = 0; *s != '\0' && n < 4; ) {
Q->axis[n] = abs(atoi(s))-1;
if (Q->axis[n] < 0 || Q->axis[n] > 3) {
if (Q->axis[n] > 3) {
proj_log_error(P, "axisswap: invalid axis '%d'", Q->axis[n]);
return pj_default_destructor(P, PJD_ERR_AXIS);
}
Expand Down

0 comments on commit 2991658

Please sign in to comment.