Update output.c

This commit is contained in:
daid
2020-11-03 13:33:02 +01:00
committed by GitHub
parent 7e620bff81
commit 84edfb3d88

View File

@@ -472,11 +472,10 @@ static void registerExportedSymbol(struct Symbol *symbol, void *arg)
void out_WriteObject(void)
{
FILE *f;
if (strcmp(tzObjectname, "-") != 0) {
if (strcmp(tzObjectname, "-") != 0)
f = fopen(tzObjectname, "wb");
} else {
else
f = fdopen(1, "wb");
}
if (!f)
err(1, "Couldn't write file '%s'", tzObjectname);