summaryrefslogtreecommitdiff
path: root/src/filelist.c
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:48:49 +0100
commitc8667c1a7874490975665d63e4ccf5efcfba23df (patch)
tree06255586e480ef986929693235b9d96af0fe6b71 /src/filelist.c
parent1d1c999a51db52739483f7137104b7e8bedb83fa (diff)
also, don't fclose() /dev/stdin
Diffstat (limited to 'src/filelist.c')
-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);
}