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:
alexey.lysiuk 2014-11-16 10:29:03 +02:00
parent 93a732f0ca
commit fd85e116e5

View file

@ -433,7 +433,7 @@ bool TimidityPPMIDIDevice::LaunchTimidity ()
}
int forkres;
wordexp_t words;
wordexp_t words = {};
switch (wordexp (CommandLine.GetChars(), &words, 0))
{