aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-08 18:52:34 +0000
committerVaxry <[email protected]>2024-12-08 18:52:39 +0000
commit0a27af8cd190315c1f13363ebd11e83d30455d48 (patch)
tree1fd880d0e89bfb8feeebd72f97aab60d2ad82de2
parentc106f454c136ecca47f84c659c58e19670050412 (diff)
downloadHyprland-0a27af8cd190315c1f13363ebd11e83d30455d48.tar.gz
Hyprland-0a27af8cd190315c1f13363ebd11e83d30455d48.zip
crashreporter: avoid clang warning
-rw-r--r--src/debug/CrashReporter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp
index 30494513..f3478366 100644
--- a/src/debug/CrashReporter.cpp
+++ b/src/debug/CrashReporter.cpp
@@ -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];