changeset 18325:bdae97863718

Bug fix. Make 'all_required_fields_filled' understand that an empty string does not qualify as filled
author Sean Egan <seanegan@gmail.com>
date Wed, 27 Jun 2007 22:52:41 +0000
parents 075fa1c68bce
children 36ac3285b092
files libpurple/request.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/request.c	Wed Jun 27 21:42:39 2007 +0000
+++ b/libpurple/request.c	Wed Jun 27 22:52:41 2007 +0000
@@ -150,7 +150,8 @@
 		switch (purple_request_field_get_type(field))
 		{
 			case PURPLE_REQUEST_FIELD_STRING:
-				if (purple_request_field_string_get_value(field) == NULL)
+				if (purple_request_field_string_get_value(field) == NULL ||
+				    *(purple_request_field_string_get_value(field)) == '\0')
 					return FALSE;
 
 				break;