diff options
Diffstat (limited to 'gdb/python/py-function.c')
-rw-r--r-- | gdb/python/py-function.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c index 7286d646219..f09c6b41c58 100644 --- a/gdb/python/py-function.c +++ b/gdb/python/py-function.c @@ -38,6 +38,7 @@ convert_values_to_python (int argc, struct value **argv) { int i; PyObject *result = PyTuple_New (argc); + for (i = 0; i < argc; ++i) { PyObject *elt = value_to_value_object (argv[i]); @@ -103,6 +104,7 @@ static int fnpy_init (PyObject *self, PyObject *args, PyObject *kwds) { char *name, *docstring = NULL; + if (! PyArg_ParseTuple (args, "s", &name)) return -1; Py_INCREF (self); |