mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
Fixed another potential crash in word expansion API
Calling wordfree() may lead to a crash when wordexp_t instance is not zero-initialized This happened usually on older OS X like 10.5 or 10.6
This commit is contained in:
parent
93a732f0ca
commit
fd85e116e5
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ bool TimidityPPMIDIDevice::LaunchTimidity ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int forkres;
|
int forkres;
|
||||||
wordexp_t words;
|
wordexp_t words = {};
|
||||||
|
|
||||||
switch (wordexp (CommandLine.GetChars(), &words, 0))
|
switch (wordexp (CommandLine.GetChars(), &words, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue