Problem: Coverity warns for using uninitialized memory.
Solution: Add a condition to clearing the growarray.
STR2NR_HEX + STR2NR_FORCE, &nr, NULL, 4, TRUE);
if (len == 0)
{
- ga_clear(&ga);
+ if (res != NULL)
+ ga_clear(&ga);
return FAIL;
}
p += len + 2;
STR2NR_HEX + STR2NR_FORCE, &nr2, NULL, 4, TRUE);
if (len == 0)
{
- ga_clear(&ga);
+ if (res != NULL)
+ ga_clear(&ga);
return FAIL;
}
if (0xdc00 <= nr2 && nr2 <= 0xdfff)
if (res != NULL)
{
char_u buf[NUMBUFLEN];
+
buf[utf_char2bytes((int)nr, buf)] = NUL;
ga_concat(&ga, buf);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1409,
/**/
1408,
/**/