From bcdf22b910b69ca66a203a8f96fe54fc8df5cca0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 16 Nov 2014 09:30:57 +0200 Subject: [PATCH] Fixed potential crash in word expansion API 10.5.8 PPC crashed 100%, some versions of 10.6 i386 were affected too --- src/sdl/iwadpicker_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/iwadpicker_cocoa.mm b/src/sdl/iwadpicker_cocoa.mm index c3b167c099..d1364fa814 100644 --- a/src/sdl/iwadpicker_cocoa.mm +++ b/src/sdl/iwadpicker_cocoa.mm @@ -428,7 +428,7 @@ static void RestartWithParameters(const char* iwadPath, NSString* parameters) [arguments addObject:currentParameter]; } - wordexp_t expansion; + wordexp_t expansion = {}; if (0 == wordexp([parameters UTF8String], &expansion, 0)) {