summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
authornicm <nicm>2008-06-19 21:13:56 (GMT)
committer nicm <nicm>2008-06-19 21:13:56 (GMT)
commit2e52ccecc25ceed89995496ebf42c5b5996e1d49 (patch) (side-by-side diff)
treeb5b25b3dba1785f408905977116410978d6f1308 /cmd-string.c
parentced9cf5c4a19b2feca8cd4be3075bdace467953f (diff)
downloadtmux-old-2e52ccecc25ceed89995496ebf42c5b5996e1d49.zip
tmux-old-2e52ccecc25ceed89995496ebf42c5b5996e1d49.tar.gz
tmux-old-2e52ccecc25ceed89995496ebf42c5b5996e1d49.tar.bz2
Convert cfg.c to use cmd-string stuff.
Diffstat (limited to 'cmd-string.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-string.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-string.c b/cmd-string.c
index 12add6a..d0a87e4 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -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: