1
0
forked from aniani/vim

patch 8.2.3014: Coverity warns for freeing static string

Problem:    Coverity warns for freeing static string.
Solution:   Do not assign static string to pointer. (Dominique Pellé,
            closes #8397)
This commit is contained in:
Dominique Pelle
2021-06-17 13:53:41 +02:00
committed by Bram Moolenaar
parent 4cea536bdf
commit 6e9695525e
2 changed files with 3 additions and 3 deletions

View File

@@ -1469,10 +1469,8 @@ handle_debug(isn_T *iptr, ectx_T *ectx)
}
else
line = ((char_u **)ufunc->uf_lines.ga_data)[iptr->isn_lnum - 1];
if (line == NULL)
line = (char_u *)"[empty]";
do_debug(line);
do_debug(line == NULL ? (char_u *)"[empty]" : line);
debug_context = NULL;
if (end_lnum > iptr->isn_lnum)