/pidgin/main: aececc7e1314: Gadu-Gadu: fix a (recently added) crash

Tomasz Wasilczyk twasilczyk at pidgin.im
Wed Oct 23 15:37:54 EDT 2013


Changeset: aececc7e13143e99f34103774cfd35fb248eb215
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2013-10-23 21:37 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/aececc7e1314

Description:

Gadu-Gadu: fix a (recently added) crash

diffstat:

 libpurple/protocols/gg/pubdir-prpl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/libpurple/protocols/gg/pubdir-prpl.c b/libpurple/protocols/gg/pubdir-prpl.c
--- a/libpurple/protocols/gg/pubdir-prpl.c
+++ b/libpurple/protocols/gg/pubdir-prpl.c
@@ -531,8 +531,8 @@ void ggp_pubdir_search(PurpleConnection 
 	purple_request_field_group_add_field(group, field);
 
 	field = purple_request_field_choice_new("gender", _("Gender"),
-		GINT_TO_POINTER(form->gender));
-	purple_request_field_choice_add(field, _("Male or female"), 0);
+		form ? GINT_TO_POINTER(form->gender) : NULL);
+	purple_request_field_choice_add(field, _("Male or female"), NULL);
 	purple_request_field_choice_add(field, _("Male"),
 		GINT_TO_POINTER(GGP_PUBDIR_GENDER_MALE));
 	purple_request_field_choice_add(field, _("Female"),



More information about the Commits mailing list