mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +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;
|
char *tmp;
|
||||||
|
|
||||||
if ((tmp = strrchr(path, VIR_FILE_DIR_SEPARATOR)))
|
if ((tmp = strrchr(path, G_DIR_SEPARATOR)))
|
||||||
tmp[1] = '\0';
|
tmp[1] = '\0';
|
||||||
else
|
else
|
||||||
path[0] = '\0';
|
path[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user