changeset 9156:41fba1972ed0

[gaim-migrate @ 9940] In my mind, this function is the same before my change, after my change, and after the change listed at http://www.reaperworld.com/code/gaim/gaim-0.79cvs-sane_sanity_checks_in_pref_callback.diff Am I wrong? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 01 Jun 2004 01:43:38 +0000
parents e0c50af60837
children bd1ea0a717d7
files src/prefs.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Tue Jun 01 01:39:18 2004 +0000
+++ b/src/prefs.c	Tue Jun 01 01:43:38 2004 +0000
@@ -649,11 +649,12 @@
 
 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback func, gpointer data)
 {
-	struct gaim_pref *pref = find_pref(name);
+	struct gaim_pref *pref;
 	struct pref_cb *cb;
 	static guint cb_id = 0;
 
-	if(!pref)
+	pref = find_pref(name);
+	if (pref == NULL)
 		return 0;
 
 	cb = g_new0(struct pref_cb, 1);