about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index ba387028..85a85131 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -4123,7 +4123,10 @@ gboolean
 cmd_pgp(ProfWin *window, gchar **args, struct cmd_help_t help)
 {
 #ifdef HAVE_LIBGPGME
-    if (g_strcmp0(args[0], "keys") == 0) {
+    if (args[0] == NULL) {
+        cons_show("Usage: %s", help.usage);
+        return TRUE;
+    } else if (g_strcmp0(args[0], "keys") == 0) {
         GSList *keys = p_gpg_list_keys();
         if (keys) {
             cons_show("PGP keys:");