diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-30 23:19:02 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:36:31 -0300 |
commit | 81ca5ff126c5c0731b7eb57513f899ac6619073e (patch) | |
tree | 63784713d4e3abb32a7bf5a491a8e155171cbbce /src/nvim/ex_cmds2.c | |
parent | 8234f2839f78009442b4ed7bc0599e6b581d5cf8 (diff) | |
download | rneovim-81ca5ff126c5c0731b7eb57513f899ac6619073e.tar.gz rneovim-81ca5ff126c5c0731b7eb57513f899ac6619073e.tar.bz2 rneovim-81ca5ff126c5c0731b7eb57513f899ac6619073e.zip |
No OOM in enc_canonize()
Fix a `return FAIL` that should be `return NULL` in `enc_locale()`
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 1876276e9f..17c0f3bf3e 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3012,8 +3012,6 @@ void ex_scriptencoding(exarg_T *eap) if (*eap->arg != NUL) { name = enc_canonize(eap->arg); - if (name == NULL) /* out of memory */ - return; } else name = eap->arg; |