diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-23 15:59:59 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-23 23:44:32 +0200 |
commit | 2a49163103827465f25810f5f4e3d4305159f209 (patch) | |
tree | 673b3f877e9ff51cb27ed1c844495b3f432d5f45 /src/nvim/api/private/helpers.c | |
parent | 5c9860a0a2bf27d409c986673f0a74542561c4c3 (diff) | |
download | rneovim-2a49163103827465f25810f5f4e3d4305159f209.tar.gz rneovim-2a49163103827465f25810f5f4e3d4305159f209.tar.bz2 rneovim-2a49163103827465f25810f5f4e3d4305159f209.zip |
api_clear_error()
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index e6632525e1..547ac29bed 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -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; |