summaryrefslogtreecommitdiff
path: root/bf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bf.c')
-rw-r--r--bf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bf.c b/bf.c
index 688841d..80f600f 100644
--- a/bf.c
+++ b/bf.c
@@ -190,10 +190,10 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
- prog = freadall(*argv);
- if (!prog)
- errx(1, "not found: %s", *argv);
+ if (!argc)
+ errx(1, "no argument");
+ prog = freadall(*argv);
data = alloccell();
execute(data, prog);