提交 dff791c8 编写于 作者: F Fabiano Fidêncio

util: Use G_DIR_SEPARATOR instead of VIR_FILE_DIR_SEPARATOR

Signed-off-by: NFabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: NCole Robinson <crobinso@redhat.com>
上级 99d0c668
...@@ -3278,7 +3278,7 @@ virFileRemoveLastComponent(char *path) ...@@ -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';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册