diff console/gntrequest.c @ 14063:ccbd43daa1a3

[gaim-migrate @ 16682] Removing buddies/groups now works. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 09 Aug 2006 18:00:38 +0000
parents fa8f65cd912c
children fec4fadf30c9
line wrap: on
line diff
--- a/console/gntrequest.c	Wed Aug 09 17:22:55 2006 +0000
+++ b/console/gntrequest.c	Wed Aug 09 18:00:38 2006 +0000
@@ -234,7 +234,8 @@
 			else if (type == GAIM_REQUEST_FIELD_STRING)
 			{
 				GntWidget *entry = field->ui_data;
-				gaim_request_field_string_set_value(field, gnt_entry_get_text(GNT_ENTRY(entry)));
+				const char *text = gnt_entry_get_text(GNT_ENTRY(entry));
+				gaim_request_field_string_set_value(field, (text && *text) ? text : NULL);
 			}
 			else if (type == GAIM_REQUEST_FIELD_INTEGER)
 			{