archive/List: convert pointer to reference

This commit is contained in:
Max Kellermann 2022-02-14 16:30:55 +01:00
parent b1096a9935
commit d3db0400b0

View File

@ -77,8 +77,8 @@ archive_plugin_from_name(const char *name) noexcept
void archive_plugin_init_all() void archive_plugin_init_all()
{ {
for (unsigned i = 0; archive_plugins[i] != nullptr; ++i) { for (unsigned i = 0; archive_plugins[i] != nullptr; ++i) {
const ArchivePlugin *plugin = archive_plugins[i]; const auto &plugin = *archive_plugins[i];
if (plugin->init == nullptr || archive_plugins[i]->init()) if (plugin.init == nullptr || plugin.init())
archive_plugins_enabled[i] = true; archive_plugins_enabled[i] = true;
} }
} }