elementary: make sure we don't iterate out of bounds

The carray iterator will end iterating only when it finds a NULL
object. We must make sure the last element of the array is NULL
to avoid out of bounds access.
This commit is contained in:
Jean Guyomarc'h 2016-08-26 15:00:52 +02:00 committed by Jean Guyomarc'h
parent 5db3357f40
commit 322adb2e03
1 changed files with 1 additions and 0 deletions

View File

@ -859,6 +859,7 @@ _process_children_cb(void *data, void *values)
promises[3] = efl_model_property_get(child, "size");
promises[4] = efl_model_property_get(child, "mtime");
promises[5] = efl_model_property_get(child, "mime_type");
promises[6] = NULL;
promise_all = eina_promise_all(eina_carray_iterator_new((void**)promises));
++(lreq->item_total);