summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/client/clitar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 5e20c3e11b..f7a292dbbf 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1775,6 +1775,10 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind)
if (tarhandle == 1) {
dbf = x_stderr;
}
+ if (!argv[Optind]) {
+ DEBUG(0,("Must specify tar filename\n"));
+ return 0;
+ }
if (!strcmp(argv[Optind], "-")) {
newOptind++;
}