summaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:26:39 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:26:39 +0000
commita906bc6480dbdc7cc1bd54884702fb807ef0fbc1 (patch)
tree9a1b562d598cba5b2b8e3bbef491d7d866e1d82a /gdb/python
parent9b859adb4f3dfc4df5022746517422d8769100ee (diff)
downloadgdb-a906bc6480dbdc7cc1bd54884702fb807ef0fbc1.tar.gz
* python/py-event.c (gdbpy_initialize_event_generic): Return
early if PyType_Ready fails.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-event.c b/gdb/python/py-event.c
index afd07feca50..72d57cb8254 100644
--- a/gdb/python/py-event.c
+++ b/gdb/python/py-event.c
@@ -76,7 +76,7 @@ gdbpy_initialize_event_generic (PyTypeObject *type,
char *name)
{
if (PyType_Ready (type) < 0)
- goto fail;
+ return -1;
Py_INCREF (type);
if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0)