aboutsummaryrefslogtreecommitdiff
path: root/cmd-command-prompt.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 21:20:27 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-19 21:20:27 +0000
commit85135221f08d2e2d54269c8b8fc4325833c2fe9d (patch)
tree60fc49fda53deff487ce4f2a3db6f4a6ad0d9ef0 /cmd-command-prompt.c
parent0695db3889928969d4281859bbe676d7c8605f49 (diff)
downloadrtmux-85135221f08d2e2d54269c8b8fc4325833c2fe9d.tar.gz
rtmux-85135221f08d2e2d54269c8b8fc4325833c2fe9d.tar.bz2
rtmux-85135221f08d2e2d54269c8b8fc4325833c2fe9d.zip
Handle commented lines.
Diffstat (limited to 'cmd-command-prompt.c')
-rw-r--r--cmd-command-prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c
index 96ca7199..2a93d730 100644
--- a/cmd-command-prompt.c
+++ b/cmd-command-prompt.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-command-prompt.c,v 1.1 2008-06-19 20:45:20 nicm Exp $ */
+/* $Id: cmd-command-prompt.c,v 1.2 2008-06-19 21:20:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -73,6 +73,8 @@ cmd_command_prompt_callback(void *data, char *s)
return;
if ((cmd = cmd_string_parse(s, &cause)) == NULL) {
+ if (cause == NULL)
+ return;
*cause = toupper((u_char) *cause);
server_set_client_message(c, cause);
xfree(cause);