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 "";