By: João Paulo Rechi Vita <jprvita@profusion.mobi>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@47398
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
char *path;
Eina_Array_Iterator iterator;
unsigned int i;
- Eina_Array *modems = eina_array_new(1);
+ Eina_Array *modems = NULL;
if(e_ofono_manager_modems_get(&modems))
{
printf("[");
- EINA_ARRAY_ITER_NEXT(modems, i, path, iterator)
- printf(" %s", path);
+ if (modems)
+ EINA_ARRAY_ITER_NEXT(modems, i, path, iterator)
+ printf(" %s", path);
printf(" ]\n");
}