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

Adapt to VIR_STRDUP and VIR_STRNDUP in src/secret/*

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