diff options
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r-- | libcaja-private/caja-file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 1958fafc..6c252e3b 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -7158,6 +7158,10 @@ caja_file_is_binary (CajaFile *file) */ fp = g_fopen (g_file_get_path (caja_file_get_location (file)), "r"); + if (fp == NULL) + { + return FALSE; + } for (i = 0; i < 4096; i++) { c = fgetc(fp); if (c == EOF) { |