diff --git a/src/filelist.c b/src/filelist.c index 9391ba0787024c0f8c1a07d556a8c0cbb313ef1a..47b053405f39c8ecda1f8eaf970730df9f3a0c6e 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); }