diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-06-16 20:27:25 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-16 20:27:25 -0400 |
commit | d199d18159c624844c9c8052d1a98b91084fb803 (patch) | |
tree | 827dd9c4f8f1f6ef73ff1f20a609d08e36640986 /src/nvim/charset.c | |
parent | 8bbeb4b480a72d0099a18c4d8200313600045231 (diff) | |
parent | e85598e5a91c714c10034b6b3986a666065d1078 (diff) | |
download | rneovim-d199d18159c624844c9c8052d1a98b91084fb803.tar.gz rneovim-d199d18159c624844c9c8052d1a98b91084fb803.tar.bz2 rneovim-d199d18159c624844c9c8052d1a98b91084fb803.zip |
Merge #787 'removal of redundant OOM error handling'
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 948cb7e569..549c926763 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -9,6 +9,7 @@ #include "nvim/vim.h" #include "nvim/charset.h" #include "nvim/farsi.h" +#include "nvim/func_attr.h" #include "nvim/main.h" #include "nvim/mbyte.h" #include "nvim/memline.h" @@ -321,12 +322,12 @@ void trans_characters(char_u *buf, int bufsize) } /// Translate a string into allocated memory, replacing special chars with -/// printable chars. Returns NULL when out of memory. +/// printable chars. /// /// @param s /// /// @return translated string -char_u *transstr(char_u *s) +char_u *transstr(char_u *s) FUNC_ATTR_NONNULL_RET { char_u *res; char_u *p; |