diff options
author | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-08-18 22:44:06 +0200 |
---|---|---|
committer | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-08-18 22:44:06 +0200 |
commit | b25cea52a0502e2841b3f3ccff1b48028754cdad (patch) | |
tree | 65a9bb5cd89ea4664bdc766f3e711038cd3efbf4 /src/hoofd.c | |
parent | 12fb04dd944cf1bb094ac361c77d47f62b113e05 (diff) |
verbeter kleine foutjes
Diffstat (limited to 'src/hoofd.c')
-rw-r--r-- | src/hoofd.c | 7 |
1 files changed, 1 insertions, 6 deletions
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); |