mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.1565
Problem: Crash when assert_equal() runs into a NULL string. Solution: Check for NULL. (Dominique) Add a test.
This commit is contained in:
@@ -9240,6 +9240,12 @@ ga_concat_esc(garray_T *gap, char_u *str)
|
||||
char_u *p;
|
||||
char_u buf[NUMBUFLEN];
|
||||
|
||||
if (str == NULL)
|
||||
{
|
||||
ga_concat(gap, (char_u *)"NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
for (p = str; *p != NUL; ++p)
|
||||
switch (*p)
|
||||
{
|
||||
|
Reference in New Issue
Block a user