Python bindings: fix uninitialized value
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 04 Apr 2011 12:35:41 +0100
changeset 6995 7ae22c26c5da
parent 6994 4ab8b23631fd
child 6996 53f1bfb3e91c
Python bindings: fix uninitialized value
bindings/python/wscript
src/core/bindings/module_helpers.cc
--- a/bindings/python/wscript	Sun Apr 03 20:54:34 2011 -0700
+++ b/bindings/python/wscript	Mon Apr 04 12:35:41 2011 +0100
@@ -15,7 +15,7 @@
 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)
 
 
--- a/src/core/bindings/module_helpers.cc	Sun Apr 03 20:54:34 2011 -0700
+++ b/src/core/bindings/module_helpers.cc	Mon Apr 04 12:35:41 2011 +0100
@@ -98,6 +98,7 @@
     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 @@
 
     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 @@
 
     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: