aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-event.c
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
commit9f4ff0c296819bbe3abd4c3717cf8677c5a89310 (patch)
treec78afa3d97beed409a34499506a59acaf6943a13 /gdb/python/py-event.c
parent0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb (diff)
downloadgdb-9f4ff0c296819bbe3abd4c3717cf8677c5a89310.zip
gdb-9f4ff0c296819bbe3abd4c3717cf8677c5a89310.tar.gz
gdb-9f4ff0c296819bbe3abd4c3717cf8677c5a89310.tar.bz2
* python/py-event.c (gdbpy_initialize_event_generic): Return
early if PyType_Ready fails.
Diffstat (limited to 'gdb/python/py-event.c')
-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 afd07fe..72d57cb 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)