提交 fecc6ed0 编写于 作者: J John Ferlan

util: Remove NONNULL(1) for virBitmapParseUnlimited

The code checks and handles a NULL 'str', so just remove the NONNULL.

Update the error message to add the NULLSTR() around 'str' also.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 9f66e09b
...@@ -647,7 +647,7 @@ virBitmapParseUnlimited(const char *str) ...@@ -647,7 +647,7 @@ virBitmapParseUnlimited(const char *str)
error: error:
virReportError(VIR_ERR_INVALID_ARG, virReportError(VIR_ERR_INVALID_ARG,
_("Failed to parse bitmap '%s'"), str); _("Failed to parse bitmap '%s'"), NULLSTR(str));
virBitmapFree(bitmap); virBitmapFree(bitmap);
return NULL; return NULL;
} }
......
...@@ -95,8 +95,7 @@ virBitmapParseSeparator(const char *str, ...@@ -95,8 +95,7 @@ virBitmapParseSeparator(const char *str,
virBitmapPtr *bitmap, virBitmapPtr *bitmap,
size_t bitmapSize); size_t bitmapSize);
virBitmapPtr virBitmapPtr
virBitmapParseUnlimited(const char *str) virBitmapParseUnlimited(const char *str);
ATTRIBUTE_NONNULL(1);
virBitmapPtr virBitmapNewCopy(virBitmapPtr src) ATTRIBUTE_NONNULL(1); virBitmapPtr virBitmapNewCopy(virBitmapPtr src) ATTRIBUTE_NONNULL(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册