patch 8.2.5107: some callers of rettv_list_alloc() check for not OK
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van
Willegen)
Solution: Use "==" instead of "!=" when checking the return value.
diff --git a/src/time.c b/src/time.c
index d768742..4adcce5 100644
--- a/src/time.c
+++ b/src/time.c
@@ -172,7 +172,7 @@
proftime_T start;
long n1, n2;
- if (rettv_list_alloc(rettv) != OK)
+ if (rettv_list_alloc(rettv) == FAIL)
return;
if (in_vim9script()
@@ -787,7 +787,7 @@
{
timer_T *timer = NULL;
- if (rettv_list_alloc(rettv) != OK)
+ if (rettv_list_alloc(rettv) == FAIL)
return;
if (in_vim9script() && check_for_opt_number_arg(argvars, 0) == FAIL)