mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
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:
parent
bccfdaacf7
commit
bcdf22b910
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue