提交 296d319f 编写于 作者: M Michal Privoznik

Adapt to VIR_STRDUP and VIR_STRNDUP in src/secret/*

上级 a39875b7
......@@ -1097,9 +1097,8 @@ secretStateInitialize(bool privileged,
secretDriverLock(driverState);
if (privileged) {
base = strdup(SYSCONFDIR "/libvirt");
if (base == NULL)
goto out_of_memory;
if (VIR_STRDUP(base, SYSCONFDIR "/libvirt") < 0)
goto error;
} else {
base = virGetUserConfigDirectory();
if (!base)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册