提交 114ebecd 编写于 作者: J John Ferlan

virstring: Resolve Coverity FORWARD_NULL

Perhaps a false positive, but since Coverity doesn't understand the
relationship between the 'count' and the 'strings', rather than leave
the chance the on input 'strings' is NULL and causes a deref - just
check for it and return
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 d3f0708e
......@@ -198,6 +198,9 @@ virStringFreeListCount(char **strings,
{
size_t i;
if (!strings)
return;
for (i = 0; i < count; i++)
VIR_FREE(strings[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册