]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Use G_DIR_SEPARATOR instead of VIR_FILE_DIR_SEPARATOR
authorFabiano Fidêncio <fidencio@redhat.com>
Wed, 18 Dec 2019 20:11:43 +0000 (21:11 +0100)
committerFabiano Fidêncio <fidencio@redhat.com>
Wed, 18 Dec 2019 22:11:50 +0000 (23:11 +0100)
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/util/virfile.c

index b72d18b3d2e9447c43ac58dc822b57df4ad46574..0f0d607c595078de497098fedec143d69216182d 100644 (file)
@@ -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';