提交 810eea71 编写于 作者: P Peter Krempa

uuid: Fix coverity warning of unchecked return value

Coverity checks for patterns of handling return values of functions.
Some recent addition must have tripped a threshold where coverity now
complains that we usually check the return value of virUUIDGenerate but
don't do it in one place. Add a check to make coverity happy.
上级 b9f8a2f2
......@@ -51,7 +51,9 @@ fakeSecretLookupByUsage(virConnectPtr conn,
if (STRNEQ(usageID, "mycluster_myname"))
return NULL;
virUUIDGenerate(uuid);
if (virUUIDGenerate(uuid) < 0)
return NULL;
return virGetSecret(conn, uuid, usageType, usageID);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册