mirror of
https://github.com/vim/vim.git
synced 2025-10-24 08:54:47 -04:00
patch 9.1.1558: str2blob() treats NULL string and empty string differently
Problem: str2blob() treats NULL string and empty string differently
Solution: Treats a NULL string the same as an empty string
(zeertzjq).
closes: #17778
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
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
0d9160e11c
commit
2e154d8135
@@ -1407,7 +1407,7 @@ f_str2blob(typval_T *argvars, typval_T *rettv)
|
||||
char_u *str = li->li_tv.vval.v_string;
|
||||
|
||||
if (str == NULL)
|
||||
continue;
|
||||
str = (char_u *)"";
|
||||
|
||||
if (to_encoding != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user