Fix crash on OS X x86_64.

This commit is contained in:
Toby Thain 2015-02-03 19:35:03 -05:00
parent 48996a6627
commit ea8ee367ee
2 changed files with 8 additions and 0 deletions

View File

@ -39,3 +39,9 @@ util.o: util.c util.h
rad50.o: rad50.c rad50.h
dumpobj.o: dumpobj.c rad50.h util.h
rad50.o: rad50.c rad50.h
# Since the only test we have so far is for a crash bug,
# just try to assemble. Later, we will need expected/actual tests.
tests: macro11
./macro11 tests/*

View File

@ -551,6 +551,8 @@ static int assemble(
my_searchenv(macfile, "MCALL", hitfile, sizeof(hitfile));
if (hitfile[0])
macstr = new_file_stream(hitfile);
else
macstr = NULL;
}
if (macstr != NULL) {