changeset 15291:40746bedd9a8

[gaim-migrate @ 18081] Print a debug message when trying to connect a callback for a non-existent pref. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 07 Jan 2007 07:30:01 +0000
parents 17e84298313d
children 0e8f0468a809
files libgaim/prefs.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/prefs.c	Sun Jan 07 07:18:48 2007 +0000
+++ b/libgaim/prefs.c	Sun Jan 07 07:30:01 2007 +0000
@@ -1017,8 +1017,10 @@
 	g_return_val_if_fail(func != NULL, 0);
 
 	pref = find_pref(name);
-	if (pref == NULL)
+	if (pref == NULL) {
+		gaim_debug_error("prefs", "gaim_prefs_connect_callback: Unknown pref %s\n", name);
 		return 0;
+	}
 
 	cb = g_new0(struct pref_cb, 1);