From 44a4cf517b078eefd0b48072e9e7967f1581e68e Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 25 May 2003 18:01:15 +0000 Subject: * src/actions.c (cmd_gselect): if the user didn't type anything then return. --- ChangeLog | 1 + src/actions.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index f43f81c..4ef9e7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/actions.c (cmd_gmerge): show a message if the group specified by the user could not be found. + (cmd_gselect): if the user didn't type anything then return. * src/window.c: do not include ctype.h diff --git a/src/actions.c b/src/actions.c index 5516dc5..0b5a323 100644 --- a/src/actions.c +++ b/src/actions.c @@ -3204,6 +3204,10 @@ cmd_gselect (int interactive, char *data) else str = xstrdup (data); + /* User aborted. */ + if (str == NULL) + return NULL; + g = find_group (str); if (g) -- cgit v1.2.3