From b25cea52a0502e2841b3f3ccff1b48028754cdad Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Sun, 18 Aug 2024 22:44:06 +0200 Subject: verbeter kleine foutjes --- src/hoofd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/hoofd.c') diff --git a/src/hoofd.c b/src/hoofd.c index 596461a..aa7e6ab 100644 --- a/src/hoofd.c +++ b/src/hoofd.c @@ -62,12 +62,7 @@ static char** parse_options(int argc, char **argv, int *n, int *c) { } static int process(char *fname, bool isstdin) { - FILE *stream = NULL; - if (isstdin) { - stream = stdin; - } else { - stream = fopen(fname, "rb"); - } + FILE *stream = isstdin ? stdin : fopen(fname, "rb"); if (gc != -1) { char *buf = calloc(gc, 1); -- cgit v1.2.3-70-g09d2