felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=37a04b09d22e33fa3a9b0f0aa04aa9effe7b292f
commit 37a04b09d22e33fa3a9b0f0aa04aa9effe7b292f Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br> Date: Fri Apr 10 17:09:07 2015 -0300 eio-model: Fixed crash when files are created in the temporary dir Fixed a crash when temporary files were created before the tested file, causing a dereference of a NULL pointer. --- src/tests/eio/eio_model_test_monitor_add.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c index 11d9e17..87a4ee3 100644 --- a/src/tests/eio/eio_model_test_monitor_add.c +++ b/src/tests/eio/eio_model_test_monitor_add.c @@ -34,7 +34,7 @@ _load_monitor_status_cb(void *data, Eo *obj, const Eo_Event_Description *desc EI str = eina_value_to_string(value_prop); fail_if(!str, "ERROR: Cannot convert value to string!\n"); fprintf(stderr, "new children filename %s\n", str); - if(strcmp(str, temp_filename) == 0) + if(temp_filename && strcmp(str, temp_filename) == 0) { fprintf(stderr, "is child that we want\n"); eo_do(obj, eo_event_callback_del(EFL_MODEL_BASE_EVENT_LOAD_STATUS, _load_monitor_status_cb, data)); @@ -64,7 +64,7 @@ _children_removed_cb(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event str = eina_value_to_string(value_prop); fail_if(!str, "ERROR: Cannot convert value to string!\n"); - if(strcmp(str, temp_filename) == 0) + if(temp_filename && strcmp(str, temp_filename) == 0) ecore_main_loop_quit(); } } --