summaryrefslogtreecommitdiff
path: root/asmmon.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-05-03 15:51:57 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-05-03 15:51:57 -0400
commit1c622005c289ef1cd9feea277bd0ff46b19d15f0 (patch)
treeb5258bd461ac2070c39e0eb437da676a10e295c3 /asmmon.c
parented88644ded82008577804c590bec7188ef0da011 (diff)
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.
Diffstat (limited to 'asmmon.c')
-rw-r--r--asmmon.c2
1 files changed, 1 insertions, 1 deletions
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;