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.
This commit is contained in:
@@ -607,8 +607,8 @@ supports_callback (MMPlugin *plugin,
|
|||||||
} else
|
} else
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
} else {
|
} else {
|
||||||
info->cur_plugin = info->cur_plugin->next;
|
info->cur_plugin = g_slist_next (info->cur_plugin);
|
||||||
if (info->cur_plugin->next)
|
if (info->cur_plugin)
|
||||||
next_plugin = MM_PLUGIN (info->cur_plugin->data);
|
next_plugin = MM_PLUGIN (info->cur_plugin->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user