Mercurial > vim
diff src/errors.h @ 22794:42bb78d46354 v8.2.1945
patch 8.2.1945: crash when passing NULL function to reduce()
Commit: https://github.com/vim/vim/commit/0d90e728fe089ff1bb34d6a17f5591a96b57f734
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 3 18:20:19 2020 +0100
patch 8.2.1945: crash when passing NULL function to reduce()
Problem: Crash when passing NULL function to reduce().
Solution: Check for NULL pointer and give an error. (Dominique Pell?,
closes #7243)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 03 Nov 2020 18:30:04 +0100 |
parents | 05ecd9d23c1d |
children | 3e0f909ca1f2 |
line wrap: on
line diff
--- a/src/errors.h +++ b/src/errors.h @@ -286,4 +286,6 @@ EXTERN char e_cannot_add_to_null_list[] INIT(= N_("E1130: Cannot add to null list")); EXTERN char e_cannot_add_to_null_blob[] INIT(= N_("E1131: Cannot add to null blob")); +EXTERN char e_missing_function_argument[] + INIT(= N_("E1132: Missing function argument")); #endif