diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-07 16:02:57 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-07 16:30:34 +0200 |
commit | 916a05516b05bd2c9fd42c730f9a859be9226716 (patch) | |
tree | bcc8740a56c157d31bae2a2c4e1a1aca5902efc3 | |
parent | 5d43bdb0d19823592dddd5f27e203a54f63e1441 (diff) |
main: fix segfault when passed source file is empty
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ main(int argc, char **argv) } } - rv = parse(source, dumponly); + rv = source ? parse(source, dumponly) : 0; out: if (input && input != stdin) |