Return NULL if NULL passed as parameter
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 30 Dec 2014 14:51:55 +0000 (15:51 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 30 Dec 2014 14:51:55 +0000 (15:51 +0100)
src/flat_navi.c

index 0720556..48024c1 100644 (file)
@@ -63,6 +63,8 @@ _descendants_list_get(AtspiAccessible *obj)
    Eina_List *ret = NULL, *toprocess = NULL;
    int i;
 
+   if (!obj) return NULL;
+
    // to keep all refcounts in ret list +1
    g_object_ref(obj);
    toprocess = eina_list_append(toprocess, obj);