No OOM in save_cmdline_alloc()

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-28 23:02:04 -03:00
parent 129db629dd
commit bb978fa69c
2 changed files with 2 additions and 8 deletions

View File

@@ -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. */