diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index 3da9960..ca9e415 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -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. |