changeset 19103:fc6d1088cb27

FIX: INT fields weren't being updated properly
author Eric Polino <aluink@pidgin.im>
date Tue, 19 Jun 2007 19:39:52 +0000
parents 68a3b83795c6
children 32c479656486
files finch/gntrequest.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntrequest.c	Thu Jun 14 03:54:49 2007 +0000
+++ b/finch/gntrequest.c	Tue Jun 19 19:39:52 2007 +0000
@@ -673,7 +673,7 @@
 			switch (pt) {
 				case PURPLE_PREF_INT:
 				{
-					long int tmp;
+					long int tmp = GPOINTER_TO_INT(val);
 					if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */
 						sscanf(val, "%ld", &tmp);
 					purple_prefs_set_int(id, (gint)tmp);