From c8667c1a7874490975665d63e4ccf5efcfba23df Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Feb 2016 20:15:00 +0100 Subject: also, don't fclose() /dev/stdin --- src/filelist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filelist.c b/src/filelist.c index 9391ba0..47b0534 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -567,7 +567,8 @@ gib_list *feh_read_filelist(char *filename) /* Add it to the new list */ list = gib_list_add_front(list, feh_file_new(s1)); } - fclose(fp); + if (strcmp(filename, "/dev/stdin")) + fclose(fp); return(list); } -- cgit v1.2.3