summaryrefslogtreecommitdiff
path: root/hence.c
diff options
context:
space:
mode:
Diffstat (limited to 'hence.c')
-rw-r--r--hence.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hence.c b/hence.c
index fbcb917..1fcd835 100644
--- a/hence.c
+++ b/hence.c
@@ -24,6 +24,9 @@ int main(int argc, char **argv) {
}
struct token *tok = lex_file(argv[1], fd);
+ if (!tok) {
+ return 1;
+ }
int p = parse(argv[1], fd, tok);
// gate_set_input("a", LOGIC_LOW);