summaryrefslogtreecommitdiff
path: root/src/hoofd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hoofd.c')
-rw-r--r--src/hoofd.c7
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);