From 7fc1b0887fc608c9496743ad762cd409636fbef1 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 25 Feb 2024 17:37:03 -0800 Subject: [PATCH] (uxnasm) Fixed crashing but on no-output --- src/uxnasm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 3b902cc..d1dcf09 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -520,9 +520,7 @@ main(int argc, char *argv[]) return !error("Invalid input", argv[1]); if(!assemble(src)) return !error("Assembly", "Failed to assemble rom."); - if(scmp(argv[2], "-", 2)) - dst = stdout; - else if(!(dst = fopen(argv[2], "wb"))) + if(!(dst = fopen(argv[2], "wb"))) return !error("Invalid Output", argv[2]); if(p.length <= TRIM) return !error("Assembly", "Output rom is empty.");