about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
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;