aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pj_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_init.c b/src/pj_init.c
index 5058fd39..8d52debd 100644
--- a/src/pj_init.c
+++ b/src/pj_init.c
@@ -345,7 +345,7 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) {
if( strchr( axis_legal, axis_arg[0] ) == NULL
|| strchr( axis_legal, axis_arg[1] ) == NULL
- || (axis_arg[2] && strchr( axis_legal, axis_arg[1] ) == NULL))
+ || strchr( axis_legal, axis_arg[2] ) == NULL)
{
pj_ctx_set_errno( ctx, PJD_ERR_AXIS );
goto bum_call;