diff options
Diffstat (limited to 'tasm/src')
| -rw-r--r-- | tasm/src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tasm/src/main.c b/tasm/src/main.c index bb6a1ac..7925b89 100644 --- a/tasm/src/main.c +++ b/tasm/src/main.c @@ -1,5 +1,6 @@ #include <tasm/assembler.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> #include <stdio.h> @@ -43,7 +44,7 @@ int main(int argc, char *argv[]) } } - if (!outfile) { + if (!outfile || strlen(outfile) == 0) { fprintf(stderr, "no output file\n"); usage(); exit(EXIT_FAILURE); |
