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:
Fabiano Fidêncio 2019-12-18 21:11:43 +01:00
parent 99d0c66896
commit dff791c84f

View File

@ -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';