mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
* py-cmd.c (gdbpy_string_to_argv): Check result of
PyList_New.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user