Make the parent path invalidateable

This commit is contained in:
Denis Kenzior 2009-05-11 11:49:53 -05:00 committed by Marcel Holtmann
parent 6d486b7fe1
commit 50ff91e209
1 changed files with 5 additions and 1 deletions

View File

@ -307,7 +307,11 @@ static void invalidate_parent_data(DBusConnection *conn, const char *child_path)
if (!slash)
goto done;
*slash = '\0';
if (slash == parent_path && parent_path[1] != '\0')
parent_path[1] = '\0';
else
*slash = '\0';
if (!strlen(parent_path))
goto done;