summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-18 20:15:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-18 20:15:00 +0100
commitd192dbded67b7ffdcf899db3c7c3cbe268b74222 (patch)
tree5dbcda9e41eae2f451bdb9126db66ae6275d411c /src
parent14073bb4b0cb0cc37d0b8ddfb6c39156c4a03d5b (diff)
also, don't fclose() /dev/stdin
Diffstat (limited to 'src')
-rw-r--r--src/filelist.c3
1 files changed, 2 insertions, 1 deletions
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);
}