mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
util: Use G_DIR_SEPARATOR instead of VIR_FILE_DIR_SEPARATOR
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
99d0c66896
commit
dff791c84f
@ -3278,7 +3278,7 @@ virFileRemoveLastComponent(char *path)
|
||||
{
|
||||
char *tmp;
|
||||
|
||||
if ((tmp = strrchr(path, VIR_FILE_DIR_SEPARATOR)))
|
||||
if ((tmp = strrchr(path, G_DIR_SEPARATOR)))
|
||||
tmp[1] = '\0';
|
||||
else
|
||||
path[0] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user