summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/sfrt_amain.c4
-rw-r--r--src/sofort.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/sfrt_amain.c b/src/driver/sfrt_amain.c
index 60ad615..075d9f8 100644
--- a/src/driver/sfrt_amain.c
+++ b/src/driver/sfrt_amain.c
@@ -61,7 +61,7 @@ static int sfrt_exit(struct sfrt_driver_ctx * dctx, int ret)
return ret;
}
-int sfrt_main(int argc, char ** argv, char ** envp, const struct sfrt_fd_ctx * fdctx)
+int sfrt_main(char ** argv, char ** envp, const struct sfrt_fd_ctx * fdctx)
{
int ret;
int fdout;
@@ -75,7 +75,7 @@ int sfrt_main(int argc, char ** argv, char ** envp, const struct sfrt_fd_ctx * f
if ((ret = sfrt_get_driver_ctx(argv,envp,flags,fdctx,&dctx)))
return (ret == SFRT_USAGE)
- ? !--argc
+ ? !argv || !argv[0] || !argv[1]
: SFRT_ERROR;
if (dctx->cctx->drvflags & SFRT_DRIVER_VERSION)
diff --git a/src/sofort.c b/src/sofort.c
index d52059e..0c1279e 100644
--- a/src/sofort.c
+++ b/src/sofort.c
@@ -2,5 +2,5 @@
int main(int argc, char ** argv, char ** envp)
{
- return sfrt_main(argc,argv,envp,0);
+ return sfrt_main(argv,envp,0);
}