libpurple/notify.c

branch
release-2.2.1
changeset 20404
d5e4f520e5e7
parent 20147
66f05a854eee
parent 20330
650a7af9c238
--- a/libpurple/notify.c	Mon Oct 01 16:41:18 2007 +0000
+++ b/libpurple/notify.c	Mon Oct 01 17:36:33 2007 +0000
@@ -150,6 +150,8 @@
 {
 	PurpleNotifyUiOps *ops;
 
+	g_return_val_if_fail(count != 0, NULL);
+
 	if (count == 1) {
 		return purple_notify_email(handle,
 								 (subjects == NULL ? NULL : *subjects),
@@ -504,7 +506,7 @@
 	g_return_if_fail(user_info_entry != NULL);
 	
 	g_free(user_info_entry->label);
-	g_free(user_info_entry->value);
+	g_free(user_info_entry->value);	
 	PURPLE_DBUS_UNREGISTER_POINTER(user_info_entry);
 	g_free(user_info_entry);
 }
@@ -566,7 +568,7 @@
 		if (user_info_entry->label && user_info_entry->value)
 			g_string_append(text, ": ");
 		if (user_info_entry->value)
-			g_string_append(text, user_info_entry->value);
+			g_string_append(text, user_info_entry->value);			
 
 		/* Display a section break as a horizontal line */
 		if (user_info_entry->type == PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK)

mercurial