comparison src/prefs.c @ 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 f2084fa7bda1
children 45d2ad4ac1c1
comparison
equal deleted inserted replaced
9155:e0c50af60837 9156:41fba1972ed0
647 647
648 } 648 }
649 649
650 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback func, gpointer data) 650 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback func, gpointer data)
651 { 651 {
652 struct gaim_pref *pref = find_pref(name); 652 struct gaim_pref *pref;
653 struct pref_cb *cb; 653 struct pref_cb *cb;
654 static guint cb_id = 0; 654 static guint cb_id = 0;
655 655
656 if(!pref) 656 pref = find_pref(name);
657 if (pref == NULL)
657 return 0; 658 return 0;
658 659
659 cb = g_new0(struct pref_cb, 1); 660 cb = g_new0(struct pref_cb, 1);
660 661
661 cb->func = func; 662 cb->func = func;