Fixed potential crash in word expansion API

10.5.8 PPC crashed 100%, some versions of 10.6 i386 were affected too
This commit is contained in:
alexey.lysiuk 2014-11-16 09:30:57 +02:00
parent bccfdaacf7
commit bcdf22b910

View file

@ -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))
{