commit | a0221df149aa3773450b3f930299a409dd75bd5b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Feb 11 15:07:22 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Feb 11 15:07:22 2018 +0100 |
tree | 3565d5f97f29d9cca54318bdc72fcc1da6bc366e | |
parent | 0549a1e184d33674f4c2b8fb44ccdf6b9b9808a3 [diff] [blame] |
patch 8.0.1501: out-of-memory situation not correctly handled Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value.
diff --git a/src/ops.c b/src/ops.c index 830de0b..232dc30 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -1668,6 +1668,8 @@ v_event = get_vim_var_dict(VV_EVENT); list = list_alloc(); + if (list == NULL) + return; for (n = 0; n < reg->y_size; n++) list_append_string(list, reg->y_array[n], -1); list->lv_lock = VAR_FIXED;