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: John Ferlan <jferlan@redhat.com>
This commit is contained in:
John Ferlan 2017-03-21 13:51:11 -04:00
parent 9f66e09bc5
commit fecc6ed090
2 changed files with 2 additions and 3 deletions

View File

@ -647,7 +647,7 @@ virBitmapParseUnlimited(const char *str)
error:
virReportError(VIR_ERR_INVALID_ARG,
_("Failed to parse bitmap '%s'"), str);
_("Failed to parse bitmap '%s'"), NULLSTR(str));
virBitmapFree(bitmap);
return NULL;
}

View File

@ -95,8 +95,7 @@ virBitmapParseSeparator(const char *str,
virBitmapPtr *bitmap,
size_t bitmapSize);
virBitmapPtr
virBitmapParseUnlimited(const char *str)
ATTRIBUTE_NONNULL(1);
virBitmapParseUnlimited(const char *str);
virBitmapPtr virBitmapNewCopy(virBitmapPtr src) ATTRIBUTE_NONNULL(1);