summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 12:51:56 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-19 13:03:33 -0200
commitfe668ef52c74f52c45d1c0af6a1df791ab412e35 (patch)
tree255e9f412a4790d04380c447adddd89f4b1213cb /src
parentb4c80b50bcef841d853f7e884b3eb921466096f3 (diff)
efl_io_file: initialize all fd to -1.
Since 0 is a valid fd, we should initialize these to -1.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/efl_io_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ecore/efl_io_file.c b/src/lib/ecore/efl_io_file.c
index 3cab329097..0e9320c421 100644
--- a/src/lib/ecore/efl_io_file.c
+++ b/src/lib/ecore/efl_io_file.c
@@ -113,6 +113,11 @@ _efl_io_file_efl_object_constructor(Eo *o, Efl_Io_File_Data *pd)
113 113
114 efl_io_closer_close_on_exec_set(o, EINA_TRUE); 114 efl_io_closer_close_on_exec_set(o, EINA_TRUE);
115 efl_io_closer_close_on_destructor_set(o, EINA_TRUE); 115 efl_io_closer_close_on_destructor_set(o, EINA_TRUE);
116 efl_io_positioner_fd_set(o, -1);
117 efl_io_sizer_fd_set(o, -1);
118 efl_io_reader_fd_set(o, -1);
119 efl_io_writer_fd_set(o, -1);
120 efl_io_closer_fd_set(o, -1);
116 121
117 return o; 122 return o;
118} 123}