forked from aniani/vim
patch 7.4.2257
Problem: Coverity complains about not checking for NULL. Solution: Check for out of memory.
This commit is contained in:
@@ -3009,9 +3009,9 @@ FunctionAttr(FunctionObject *self, char *name)
|
|||||||
return PyString_FromString((char *)(self->name));
|
return PyString_FromString((char *)(self->name));
|
||||||
else if (strcmp(name, "args") == 0)
|
else if (strcmp(name, "args") == 0)
|
||||||
{
|
{
|
||||||
if (self->argv == NULL)
|
if (self->argv == NULL || (list = list_alloc()) == NULL)
|
||||||
return AlwaysNone(NULL);
|
return AlwaysNone(NULL);
|
||||||
list = list_alloc();
|
|
||||||
for (i = 0; i < self->argc; ++i)
|
for (i = 0; i < self->argc; ++i)
|
||||||
list_append_tv(list, &self->argv[i]);
|
list_append_tv(list, &self->argv[i]);
|
||||||
return NEW_LIST(list);
|
return NEW_LIST(list);
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2257,
|
||||||
/**/
|
/**/
|
||||||
2256,
|
2256,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user