diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-28 23:02:04 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:31:35 -0300 |
commit | bb978fa69ccab4b5b764ac025274145291cea3ca (patch) | |
tree | 8bd42beb6beab85014184818c38a179e3e3ead6f /src/nvim/getchar.c | |
parent | 129db629dd9e2911a191e23899d4c055df61fab5 (diff) | |
download | rneovim-bb978fa69ccab4b5b764ac025274145291cea3ca.tar.gz rneovim-bb978fa69ccab4b5b764ac025274145291cea3ca.tar.bz2 rneovim-bb978fa69ccab4b5b764ac025274145291cea3ca.zip |
No OOM in save_cmdline_alloc()
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 57b0cf9a31..972ac9a0ec 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -3724,10 +3724,6 @@ eval_map_expr ( vim_unescape_csi(expr); save_cmd = save_cmdline_alloc(); - if (save_cmd == NULL) { - free(expr); - return NULL; - } /* Forbid changing text or using ":normal" to avoid most of the bad side * effects. Also restore the cursor position. */ |