summaryrefslogtreecommitdiffstats
path: root/src/vim9execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index bd7f71e686..2908e55c71 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -1785,6 +1785,8 @@ exec_instructions(ectx_T *ectx)
ea.addr_type = ADDR_LINES;
ea.cmd = iptr->isn_arg.string;
parse_cmd_address(&ea, &error, FALSE);
+ if (ea.cmd == NULL)
+ goto on_error;
if (error == NULL)
error = ex_range_without_command(&ea);
if (error != NULL)