From 1c622005c289ef1cd9feea277bd0ff46b19d15f0 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 3 May 2020 15:51:57 -0400 Subject: Put the instruction, and I/O routines into separate functions. I did this to make it more readable, while still making it fast, due to inlining it. --- asmmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asmmon.c') diff --git a/asmmon.c b/asmmon.c index 9df2bac..453ff3c 100644 --- a/asmmon.c +++ b/asmmon.c @@ -576,7 +576,7 @@ uint64_t assemble(struct line *line, uint8_t dbg) { int asmmon(const char *fn) { FILE *fp; - FILE *fp2; + FILE *fp2 = NULL; char *path = malloc(0x400); if (strcasecmp(fn, "stdin")) { uint16_t i = 0; -- cgit v1.2.3-13-gbd6f