summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_file.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-09-02 12:26:40 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-09-02 12:33:21 +0900
commitcaf934e0059bffe0d9611a0b7a1ce4157217734e (patch)
tree77c6dddad0becdb7e8e85c2de7370bd70b4a71e6 /src/lib/eina/eina_file.c
parent6113a3b76779db10de627b129464f1cbcf614a50 (diff)
eina: don't try close dummy handle.
Diffstat (limited to 'src/lib/eina/eina_file.c')
-rw-r--r--src/lib/eina/eina_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index dd2d164..b9d7b14 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -320,7 +320,7 @@ eina_file_real_close(Eina_File *file)
320 if (file->global_map != MAP_FAILED) 320 if (file->global_map != MAP_FAILED)
321 munmap(file->global_map, file->length); 321 munmap(file->global_map, file->length);
322 322
323 close(file->fd); 323 if (file->fd != -1) close(file->fd);
324 324
325 free(file); 325 free(file);
326} 326}