diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-31 00:49:17 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:40:28 -0300 |
commit | 3cb3c20b7451ef4a7bc857026e2bc28b171fbb0f (patch) | |
tree | 889602c0ddd1d647e51f0010605bdc973738696e /src/nvim/charset.c | |
parent | f4002c97dc36e817a59b5e18c852d1a17e775c1c (diff) | |
download | rneovim-3cb3c20b7451ef4a7bc857026e2bc28b171fbb0f.tar.gz rneovim-3cb3c20b7451ef4a7bc857026e2bc28b171fbb0f.tar.bz2 rneovim-3cb3c20b7451ef4a7bc857026e2bc28b171fbb0f.zip |
Fix some "out of memory" comments and few cosmetics
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; |