diff options
Diffstat (limited to 'gdb/python/py-function.c')
-rw-r--r-- | gdb/python/py-function.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c index 0c3e6f2..5cdf190 100644 --- a/gdb/python/py-function.c +++ b/gdb/python/py-function.c @@ -150,7 +150,8 @@ fnpy_call (struct gdbarch *gdbarch, const struct language_defn *language, static int fnpy_init (PyObject *self, PyObject *args, PyObject *kwds) { - char *name, *docstring = NULL; + const char *name; + char *docstring = NULL; if (! PyArg_ParseTuple (args, "s", &name)) return -1; |