From 85cc5ab50deaec93f5520f3d587fba57040c2c88 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 18 Jun 2015 00:12:01 +0100 Subject: Added cmd_pgp tests --- src/command/commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/command') 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:"); -- cgit