api_clear_error()

This commit is contained in:
Justin M. Keyes
2017-04-23 15:59:59 +02:00
parent 5c9860a0a2
commit 2a49163103
9 changed files with 48 additions and 47 deletions

View File

@@ -800,7 +800,8 @@ void api_free_dictionary(Dictionary value)
xfree(value.items);
}
void api_free_error(Error *value)
void api_clear_error(Error *value)
FUNC_ATTR_NONNULL_ALL
{
xfree(value->msg);
value->msg = NULL;