changeset 853:bdd526ec62bc

Fix segfault when using /group with the [status] entry This patch fixes the segfault reported by pmw in the mcabber conference room.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 13 May 2006 22:21:20 +0200
parents a3b8956db7bc
children bfaab692a683
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Tue May 09 23:48:41 2006 +0200
+++ b/mcabber/src/commands.c	Sat May 13 22:21:20 2006 +0200
@@ -677,6 +677,8 @@
   if (!current_buddy) return;
 
   group = buddy_getgroup(BUDDATA(current_buddy));
+  if (!group) return;
+
   // We'll have to redraw the chat window if we're not currently on the group
   // entry itself, because it means we'll have to leave the current buddy
   // chat window.