From bac945a8e4c1176d75f6c7d6622a516f673aaf65 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 5 Apr 2010 11:15:09 -0700 Subject: [PATCH] core: fix supports check for last plugin (rh #579247) Since Generic is always last, it was getting ignored by this off-by-one bug caused by a previous patch. --- src/mm-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm-manager.c b/src/mm-manager.c index 6a2485eb..d3ebf6db 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -607,8 +607,8 @@ supports_callback (MMPlugin *plugin, } else g_assert_not_reached (); } else { - info->cur_plugin = info->cur_plugin->next; - if (info->cur_plugin->next) + info->cur_plugin = g_slist_next (info->cur_plugin); + if (info->cur_plugin) next_plugin = MM_PLUGIN (info->cur_plugin->data); }