Fix possible segfault from -MT and -MQ

Happened only if `malloc` failed, so...
This commit is contained in:
ISSOtm
2020-11-29 12:33:46 +01:00
parent 30fb6bde5e
commit de76dcb8fb

View File

@@ -432,6 +432,7 @@ int main(int argc, char *argv[])
/* On first alloc, make an empty str */ /* On first alloc, make an empty str */
tzTargetFileName = tzTargetFileName =
malloc(nTargetFileNameLen + 1); malloc(nTargetFileNameLen + 1);
if (tzTargetFileName)
*tzTargetFileName = '\0'; *tzTargetFileName = '\0';
} else { } else {
tzTargetFileName = tzTargetFileName =