From d3db0400b0d4686a01f137ed418af16018b52cd0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Feb 2022 16:30:55 +0100 Subject: [PATCH] archive/List: convert pointer to reference --- src/archive/ArchiveList.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/archive/ArchiveList.cxx b/src/archive/ArchiveList.cxx index afe33645a..488708158 100644 --- a/src/archive/ArchiveList.cxx +++ b/src/archive/ArchiveList.cxx @@ -77,8 +77,8 @@ archive_plugin_from_name(const char *name) noexcept void archive_plugin_init_all() { for (unsigned i = 0; archive_plugins[i] != nullptr; ++i) { - const ArchivePlugin *plugin = archive_plugins[i]; - if (plugin->init == nullptr || archive_plugins[i]->init()) + const auto &plugin = *archive_plugins[i]; + if (plugin.init == nullptr || plugin.init()) archive_plugins_enabled[i] = true; } }