From 0e63169b263011434f5ff1a09fcb7a170ae4fb5f Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 27 Mar 2024 19:49:21 -0400 Subject: [PATCH] Bugfix: Color schemes no loading due to uninitialized pointer --- src/platform/PlatformUtils-mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/PlatformUtils-mac.mm b/src/platform/PlatformUtils-mac.mm index 46511e6234..d91e42b692 100644 --- a/src/platform/PlatformUtils-mac.mm +++ b/src/platform/PlatformUtils-mac.mm @@ -28,7 +28,7 @@ std::string PlatformUtils::userConfigPath() { - NSError *error; + NSError *error = nullptr; NSURL *appSupportDir = [[NSFileManager defaultManager] URLForDirectory:NSApplicationSupportDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:&error]; if (error) { return "";