summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-25 11:01:24 +0000
committersabetts <sabetts>2003-05-25 11:01:24 +0000
commit66bb699a0a4de0102f0c9b9edc785aa303858f35 (patch)
treea7366a0f3ec8e7e7459aab650b04fb828e56b56e /src/actions.c
parente6f71abbce1ae8f8dc840b56aa4f3ccd36ebd735 (diff)
downloadratpoison-66bb699a0a4de0102f0c9b9edc785aa303858f35.zip
* src/actions.c (cmd_gmerge): show a message if the group
specified by the user could not be found.
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c
index ab9e12e..5516dc5 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3291,6 +3291,10 @@ cmd_gmerge (int interactive, char *data)
g = find_group (data);
- groups_merge (g, rp_current_group);
+ if (g)
+ groups_merge (g, rp_current_group);
+ else
+ message (" gmerge: Cannot find group ");
+
return NULL;
}