summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 21:13:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 21:13:56 +0000
commit0695db3889928969d4281859bbe676d7c8605f49 (patch)
treee3de7f5c48fad7fc1b387e3838d1c61f262a49fe /cmd-string.c
parent471e37659fb66011f3c163241de041c727863a43 (diff)
Convert cfg.c to use cmd-string stuff.
Diffstat (limited to 'cmd-string.c')
-rw-r--r--cmd-string.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-string.c b/cmd-string.c
index 7674a0fb..33496222 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-string.c,v 1.1 2008-06-19 20:45:20 nicm Exp $ */
+/* $Id: cmd-string.c,v 1.2 2008-06-19 21:13:56 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,7 +93,9 @@ cmd_string_parse(const char *s, char **cause)
if (ch != EOF)
break;
-
+ if (argc == 0)
+ goto error;
+
cmd = cmd_parse(argc, argv, cause);
goto out;
default: