diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-04-08 19:39:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-08 19:39:53 +0200 |
| commit | 260d8e1f71b1dc6f3f354747debdc87d96b9e99f (patch) | |
| tree | 9e13cd67a6b08e356a8773b093a9c8d9fdf645b0 /src/debug | |
| parent | 642f394eb3f8fd99a51f4c8279497c458c40ba65 (diff) | |
Permission Manager: add permission management for screencopy (#9930)
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/CrashReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index f6e0b55f..0143b29c 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -192,7 +192,7 @@ void NCrashReporter::createAndSaveCrash(int sig) { #endif }; u_int miblen = sizeof(mib) / sizeof(mib[0]); - char exe[PATH_MAX] = ""; + char exe[PATH_MAX] = "/nonexistent"; size_t sz = sizeof(exe); sysctl(mib, miblen, &exe, &sz, NULL, 0); const auto FPATH = std::filesystem::canonical(exe); |
