We don't handle that correctly yet, so error out instead. A
lot of people were getting a crash on their first run b/c
they didn't specify an input file.
};
evtr_t evtr;
-char *opt_infile;
+static char *opt_infile;
unsigned evtranalyze_debug;
static
if (argc == 0) {
err(2, "need to specify a command\n");
}
- if (!opt_infile || !strcmp(opt_infile, "-")) {
+ if (!opt_infile) {
+ err(2, "you need to specify an input file\n");
+ } else if (!strcmp(opt_infile, "-")) {
inf = stdin;
} else {
inf = fopen(opt_infile, "r");