Skip to content

Commit

Permalink
crashreporter: avoid clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 8, 2024
1 parent c106f45 commit 0a27af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debug/CrashReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ void NCrashReporter::createAndSaveCrash(int sig) {
if (g_pPluginSystem && g_pPluginSystem->pluginCount() > 0) {
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";

size_t count = g_pPluginSystem->pluginCount();
CPlugin* plugins[count] = {nullptr};
g_pPluginSystem->sigGetPlugins(plugins, count);
const size_t count = g_pPluginSystem->pluginCount();
std::vector<CPlugin*> plugins(count);
g_pPluginSystem->sigGetPlugins(plugins.data(), count);

for (size_t i = 0; i < count; i++) {
auto p = plugins[i];
Expand Down

0 comments on commit 0a27af8

Please sign in to comment.