changeset 7849:2920debcb3c3

[gaim-migrate @ 8503] hush! committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 13 Dec 2003 18:27:56 +0000
parents 64d1a90f5a78
children 9ca340251309
files src/blist.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Sat Dec 13 17:06:10 2003 +0000
+++ b/src/blist.c	Sat Dec 13 18:27:56 2003 +0000
@@ -2534,7 +2534,9 @@
 
 	setting = g_hash_table_lookup(node->settings, key);
 
-	g_return_val_if_fail(setting != NULL, FALSE);
+	if(!setting)
+		return FALSE;
+
 	g_return_val_if_fail(setting->type == GAIM_BLIST_NODE_SETTING_BOOL, FALSE);
 
 	return setting->value.boolean;
@@ -2565,7 +2567,9 @@
 
 	setting = g_hash_table_lookup(node->settings, key);
 
-	g_return_val_if_fail(setting != NULL, 0);
+	if(!setting)
+		return 0;
+
 	g_return_val_if_fail(setting->type == GAIM_BLIST_NODE_SETTING_INT, 0);
 
 	return setting->value.integer;
@@ -2597,7 +2601,9 @@
 
 	setting = g_hash_table_lookup(node->settings, key);
 
-	g_return_val_if_fail(setting != NULL, NULL);
+	if(!setting)
+		return NULL;
+
 	g_return_val_if_fail(setting->type == GAIM_BLIST_NODE_SETTING_STRING, NULL);
 
 	return setting->value.string;