aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-param.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-param.c')
-rw-r--r--gdb/python/py-param.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c
index 5c726d6..747d85b 100644
--- a/gdb/python/py-param.c
+++ b/gdb/python/py-param.c
@@ -749,6 +749,7 @@ gdbpy_initialize_parameters (void)
{
int i;
+ parmpy_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&parmpy_object_type) < 0)
return;
@@ -814,5 +815,4 @@ static PyTypeObject parmpy_object_type =
0, /* tp_dictoffset */
parmpy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};