* py-cmd.c (gdbpy_string_to_argv): Check result of
PyList_New.
This commit is contained in:
parent
0430e8cba9
commit
3919fd966c
2 changed files with 7 additions and 0 deletions
|
@ -668,6 +668,8 @@ gdbpy_string_to_argv (PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
py_argv = PyList_New (0);
|
||||
if (py_argv == NULL)
|
||||
return NULL;
|
||||
|
||||
/* buildargv uses NULL to represent an empty argument list, but we can't use
|
||||
that in Python. Instead, if ARGS is "" then return an empty list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue