diff options
author | Dan Williams <dcbw@redhat.com> | 2010-04-05 11:15:09 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-04-05 11:15:09 -0700 |
commit | bac945a8e4c1176d75f6c7d6622a516f673aaf65 (patch) | |
tree | 9e01bcd22ce6c3225db1d245e79bd789115c2a16 | |
parent | a55265f03a378dd34df1e509b76888a18e0b434f (diff) |
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.
-rw-r--r-- | src/mm-manager.c | 4 |
1 files 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); } |