summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2023-07-08 10:35:19 +0100
committerChristian Brabandt <cb@256bit.org>2023-08-17 22:48:43 +0200
commitb0efa49ed179d3aa1fa0358d4c3c6d35a0efb291 (patch)
treef7ebc8fb2bd620198c1a0a0370048019e512ee3b /src/evalfunc.c
parent876f5fb570d8401aa4c58af4a5da91f10520aa9d (diff)
patch 9.0.1727: minor problems with the teapotv9.0.1727
Problem: minor problems with the teapot() Solution: remove the null check, update documentation Update the builtin-function-list entry. (It implicitly returns 0, but such functions usually use "none") Also, tv_get_string_strict() can not return NULL, so remove that check closes: #12647 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index ab6606f76f..ef0414c689 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3936,7 +3936,7 @@ f_err_teapot(typval_T *argvars, typval_T *rettv UNUSED)
if (argvars[0].v_type == VAR_STRING)
{
char_u *s = tv_get_string_strict(&argvars[0]);
- if (s == NULL || *skipwhite(s) == NUL)
+ if (*skipwhite(s) == NUL)
return;
}