mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0387: Vim9: null value tests not sufficient
Problem: Vim9: null value tests not sufficient Solution: Add a more comprehensive test for null values (Yegappan Lakshmanan) closes: #14701 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3ca2ae180a
commit
da9d345b3d
@@ -6403,9 +6403,9 @@ echo_string_core(
|
||||
{
|
||||
class_T *cl = tv->vval.v_class;
|
||||
char *s = "class";
|
||||
if (cl && IS_INTERFACE(cl))
|
||||
if (cl != NULL && IS_INTERFACE(cl))
|
||||
s = "interface";
|
||||
else if (cl && IS_ENUM(cl))
|
||||
else if (cl != NULL && IS_ENUM(cl))
|
||||
s = "enum";
|
||||
size_t len = STRLEN(s) + 1 +
|
||||
(cl == NULL ? 9 : STRLEN(cl->class_name)) + 1;
|
||||
|
Reference in New Issue
Block a user