'parent' may be used uninitialized in this function
[-Werror=maybe-uninitialized]