about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-01 16:16:56 +0000
committerJames Booth <boothj5@gmail.com>2014-02-01 16:16:56 +0000
commit652e99fdd8dcd42e75cbacde89aecbe903a368e2 (patch)
tree62b75fa781db4a31dffc95d832f13804cc5a1cdc /src
parent23842e5254f91ebecac37ceea6a28a240accae24 (diff)
downloadprofani-tty-652e99fdd8dcd42e75cbacde89aecbe903a368e2.tar.gz
Added cmd_bookmark tests
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index c038c802..bf83be07 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1713,6 +1713,11 @@ cmd_bookmark(gchar **args, struct cmd_help_t help)
     jabber_conn_status_t conn_status = jabber_get_connection_status();
     gchar *cmd = args[0];
 
+    if (cmd == NULL) {
+        cons_show("Usage: %s", help.usage);
+        return TRUE;
+    }
+
     if (conn_status != JABBER_CONNECTED) {
         cons_show("You are not currenlty connect.");
         return TRUE;