diff options
Diffstat (limited to 'src/driver/ntux_driver_ctx.c')
-rw-r--r-- | src/driver/ntux_driver_ctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/ntux_driver_ctx.c b/src/driver/ntux_driver_ctx.c index 0398d5f..2aca14c 100644 --- a/src/driver/ntux_driver_ctx.c +++ b/src/driver/ntux_driver_ctx.c @@ -175,6 +175,9 @@ int ntux_get_driver_ctx( nunits++; } + if (nunits && !cctx.cmd) + return ntux_driver_usage(program,0,optv,meta); + if (!(ctx = ntux_driver_ctx_alloc(meta,&cctx,nunits))) return ntux_get_driver_ctx_fail(meta); |