forked from github/server
fix checker build and arg parsing
This commit is contained in:
parent
64752deb26
commit
9a1bdf4444
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "util/order_parser.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct parser_state {
|
||||
|
@ -48,7 +49,7 @@ int parsefile(FILE *F) {
|
|||
|
||||
int main(int argc, char **argv) {
|
||||
FILE * F = stdin;
|
||||
if (argc >= 1) {
|
||||
if (argc > 1) {
|
||||
const char *filename = argv[1];
|
||||
F = fopen(filename, "r");
|
||||
if (!F) {
|
||||
|
|
Loading…
Reference in a new issue