summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2008-12-01 17:29:06 -0500
committerNathan Straz <nstraz@redhat.com>2008-12-01 17:29:06 -0500
commitf2419cc098d9f802765eb3cf71be698d411e086e (patch)
tree3a3983989938974fd75876f4d78dc3865da4c685 /qacp.c
parent954eb9f33f69dd9089133c8bc2df2b5695d185a1 (diff)
downloadqarsh-f2419cc098d9f802765eb3cf71be698d411e086e.tar.gz
qarsh-f2419cc098d9f802765eb3cf71be698d411e086e.tar.xz
qarsh-f2419cc098d9f802765eb3cf71be698d411e086e.zip
[qacp] Check that we have two or more paths
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qacp.c b/qacp.c
index d91be9c..2c39c96 100644
--- a/qacp.c
+++ b/qacp.c
@@ -641,7 +641,7 @@ main(int argc, char *argv[])
}
}
- if (argv[optind] == NULL) {
+ if (argv[optind] == NULL || (argc - optind < 2)) {
usage();
exit(2);
}