summaryrefslogtreecommitdiff
path: root/gdb/python/python-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python-frame.c')
-rw-r--r--gdb/python/python-frame.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/python-frame.c b/gdb/python/python-frame.c
index a97009f8f84..279415c6eeb 100644
--- a/gdb/python/python-frame.c
+++ b/gdb/python/python-frame.c
@@ -80,13 +80,12 @@ static PyObject *
frapy_str (PyObject *self)
{
char *s;
- long len;
PyObject *result;
struct ui_file *strfile;
strfile = mem_fileopen ();
fprint_frame_id (strfile, ((frame_object *) self)->frame_id);
- s = ui_file_xstrdup (strfile, &len);
+ s = ui_file_xstrdup (strfile, NULL);
result = PyString_FromString (s);
xfree (s);