# HG changeset patch # User Mark Doliner # Date 1086054218 0 # Node ID 41fba1972ed0e040fb6238d0260e98a900042d11 # Parent e0c50af60837d10354986aca02e0a10437a233d5 [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 diff -r e0c50af60837 -r 41fba1972ed0 src/prefs.c --- 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);