diff src/userfunc.c @ 20081:75589416d02d v8.2.0596

patch 8.2.0596: crash in test49 Commit: https://github.com/vim/vim/commit/ec9749f33d26162fad40714a7d21978aea10fc69 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 18 20:51:40 2020 +0200 patch 8.2.0596: crash in test49 Problem: Crash in test49. Solution: Check the right pointer.
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Apr 2020 21:00:03 +0200
parents 336483164ca6
children d0a9766167ab
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -2504,7 +2504,7 @@ ex_function(exarg_T *eap)
 
 		// With Vim9 script the name was made script-local, if not
 		// found try again with the original name.
-		if (p != NULL)
+		if (up != NULL)
 		    fp = find_func(up, NULL);
 	    }