mirror of git://git.sysmocom.de/ofono
Make the parent path invalidateable
This commit is contained in:
parent
6d486b7fe1
commit
50ff91e209
|
@ -307,7 +307,11 @@ static void invalidate_parent_data(DBusConnection *conn, const char *child_path)
|
||||||
if (!slash)
|
if (!slash)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
*slash = '\0';
|
if (slash == parent_path && parent_path[1] != '\0')
|
||||||
|
parent_path[1] = '\0';
|
||||||
|
else
|
||||||
|
*slash = '\0';
|
||||||
|
|
||||||
if (!strlen(parent_path))
|
if (!strlen(parent_path))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue