diff options
author | Brian Cameron <brian.cameron@sun.com> | 2006-03-19 23:24:03 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2006-03-19 23:24:03 +0000 |
commit | d152d7da51dafeb7bc48d7eeb18545f7c6d5bb22 (patch) | |
tree | b746d716c8766935e7a08a99abeecacf8193a937 /gui | |
parent | 16c1298c4a296c59de19289c09bed1ef9ac7e064 (diff) | |
download | gdm-d152d7da51dafeb7bc48d7eeb18545f7c6d5bb22.tar.gz |
Fix error that causes a core dump when you click on fields that have an
2006-03-19 Brian Cameron <brian.cameron@sun.com>
* gui/greeter/greeter_events.c: Fix error that causes a
core dump when you click on fields that have an id.
This should fix bug #332679.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/greeter/greeter_events.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gui/greeter/greeter_events.c b/gui/greeter/greeter_events.c index eff6671c..873c8c9b 100644 --- a/gui/greeter/greeter_events.c +++ b/gui/greeter/greeter_events.c @@ -128,10 +128,15 @@ greeter_item_run_action_callback (const char *id) info = greeter_lookup_id (id); cb_info = g_hash_table_lookup (callback_hash, id); + /* + * If run_action_callback gets called and there is no + * callback function registered, don't try to call it. + * This can happen because the button_release event + * tries calling the callback function for any + * item that has an id (like the Username field). + */ if (cb_info) (*cb_info->func) (info, cb_info->user_data); - else - (*cb_info->func) (info, NULL); } gint |