diff options
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r-- | gdb/python/py-progspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 8724532..2c8a677 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -52,7 +52,7 @@ pspy_get_filename (PyObject *self, void *closure) { struct objfile *objfile = obj->pspace->symfile_object_file; - if (objfile && objfile->name) + if (objfile) return PyString_Decode (objfile->name, strlen (objfile->name), host_charset (), NULL); } |