diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_geos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PJ_geos.c b/src/PJ_geos.c index d830c32c..f0a9bc24 100644 --- a/src/PJ_geos.c +++ b/src/PJ_geos.c @@ -206,7 +206,8 @@ PJ *PROJECTION(geos) { if (sweep_axis == NULL) Q->flip_axis = 0; else { - if (sweep_axis[1] != '\0' || (sweep_axis[0] != 'x' && sweep_axis[0] != 'y')) + if ((sweep_axis[0] != 'x' && sweep_axis[0] != 'y') || + sweep_axis[1] != '\0') return pj_default_destructor (P, PJD_ERR_INVALID_SWEEP_AXIS); if (sweep_axis[0] == 'x') |
