diff src/blist.c @ 10431:843ed1f2bf3f

[gaim-migrate @ 11683] Feature request #1022776, from Kristof Vansant: Clicking on IM in a chat channel, new tab should get focus And of course some minor code cleanup and reuse :-D committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 27 Dec 2004 07:21:45 +0000
parents f5508fbf6764
children 94fd0bf8c4b1
line wrap: on
line diff
--- a/src/blist.c	Mon Dec 27 06:47:04 2004 +0000
+++ b/src/blist.c	Mon Dec 27 07:21:45 2004 +0000
@@ -31,6 +31,7 @@
 #include "server.h"
 #include "signals.h"
 #include "util.h"
+#include "value.h"
 #include "xmlnode.h"
 
 #define PATHSIZE 1024
@@ -132,6 +133,8 @@
 	data = (const char *)value;
 	node = (xmlnode *)user_data;
 
+	g_return_if_fail(data != NULL);
+
 	child = xmlnode_new_child(node, "component");
 	xmlnode_set_attrib(child, "name", name);
 	xmlnode_insert_data(child, data, -1);