diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/amgc_amain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/amgc_amain.c b/src/driver/amgc_amain.c index 9325a4f..cf4540d 100644 --- a/src/driver/amgc_amain.c +++ b/src/driver/amgc_amain.c @@ -64,7 +64,7 @@ static int amgc_exit(struct amgc_driver_ctx * dctx, int ret) return ret; } -int amgc_main(int argc, char ** argv, char ** envp, const struct amgc_fd_ctx * fdctx) +int amgc_main(char ** argv, char ** envp, const struct amgc_fd_ctx * fdctx) { int ret; int fdout; @@ -78,7 +78,7 @@ int amgc_main(int argc, char ** argv, char ** envp, const struct amgc_fd_ctx * f if ((ret = amgc_get_driver_ctx(argv,envp,flags,fdctx,&dctx))) return (ret == AMGC_USAGE) - ? !--argc + ? !argv || !argv[0] || !argv[1] : AMGC_ERROR; if (dctx->cctx->drvflags & AMGC_DRIVER_VERSION) |