diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | src/pj_init.c | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -1,6 +1,10 @@ +2011-06-09 Frank Warmerdam <warmerdam@pobox.com> + + * src/pj_init.c: fix for +axis validation (#87) + 2011-05-31 Frank Warmerdam <warmerdam@pobox.com> - * src/PJ_igh.c: use pj_dalloc() instead of free() in FREEUP (#112). + * src/PJ_igh.c: use project free instead of free() in FREEUP (#112). * src/projects.h: memset PJ structure to zeros after allocation to avoid problems getting everything initialized properly (#112). 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; |
