diff -r 11fecadc1233 -r d5e4f520e5e7 libpurple/notify.c --- 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)