Fix find_child function 23/151723/1
authorKonrad Kuchciak <k.kuchciak@samsung.com>
Thu, 21 Sep 2017 15:07:36 +0000 (17:07 +0200)
committerKonrad Kuchciak <k.kuchciak@samsung.com>
Thu, 21 Sep 2017 15:38:42 +0000 (17:38 +0200)
Recursive searching was not working because of the typo.

Change-Id: I9ea5862c03362237c8067408a32aa9849402efa1
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
src/util/common.c

index 0d6a89981b74986bd394d5fbb1d2dcca7a9feea2..fdb2af88b9b8fd14adb61cbef64b148a269d6674 100644 (file)
@@ -209,7 +209,7 @@ static struct faultd_object *find_child(struct faultd_object *obj, const char *k
 
                /* Can search we recursively? */
                if (child->type == TYPE_OBJECT)
-                       return find_child(obj, dot + 1);
+                       return find_child(child, dot + 1);
                else
                        break;
        }