From 74aab1431c5c916abc1af509ff8eb3f071c0c2d2 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 4 Apr 2011 12:35:41 +0100 Subject: [PATCH] Python bindings: fix uninitialized value --- bindings/python/wscript | 2 +- src/core/bindings/module_helpers.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/python/wscript b/bindings/python/wscript index f3768559d..00ac0ceea 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -15,7 +15,7 @@ import Build import Utils ## https://launchpad.net/pybindgen/ -REQUIRED_PYBINDGEN_VERSION = (0, 15, 0, 779) +REQUIRED_PYBINDGEN_VERSION = (0, 15, 0, 781) REQUIRED_PYGCCXML_VERSION = (0, 9, 5) diff --git a/src/core/bindings/module_helpers.cc b/src/core/bindings/module_helpers.cc index 92c3cefb3..f73972730 100644 --- a/src/core/bindings/module_helpers.cc +++ b/src/core/bindings/module_helpers.cc @@ -98,6 +98,7 @@ _wrap_Simulator_Schedule(PyNs3Simulator *PYBINDGEN_UNUSED(dummy), PyObject *args py_EventId = PyObject_New(PyNs3EventId, &PyNs3EventId_Type); py_EventId->obj = new ns3::EventId( ns3::Simulator::Schedule(*((PyNs3Time *) py_time)->obj, py_event_impl)); + py_EventId->flags = PYBINDGEN_WRAPPER_FLAG_NONE; return (PyObject *) py_EventId; error: @@ -139,6 +140,7 @@ _wrap_Simulator_ScheduleNow(PyNs3Simulator *PYBINDGEN_UNUSED(dummy), PyObject *a py_EventId = PyObject_New(PyNs3EventId, &PyNs3EventId_Type); py_EventId->obj = new ns3::EventId(ns3::Simulator::ScheduleNow(py_event_impl)); + py_EventId->flags = PYBINDGEN_WRAPPER_FLAG_NONE; return (PyObject *) py_EventId; error: @@ -180,6 +182,7 @@ _wrap_Simulator_ScheduleDestroy(PyNs3Simulator *PYBINDGEN_UNUSED(dummy), PyObjec py_EventId = PyObject_New(PyNs3EventId, &PyNs3EventId_Type); py_EventId->obj = new ns3::EventId(ns3::Simulator::ScheduleDestroy(py_event_impl)); + py_EventId->flags = PYBINDGEN_WRAPPER_FLAG_NONE; return (PyObject *) py_EventId; error: