]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix a couple warnings
authorRobin Dunn <robin@alldunn.com>
Fri, 11 Jun 2004 22:46:47 +0000 (22:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 11 Jun 2004 22:46:47 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.cpp

index edb5a9179120fb161ad01dbdbba9c04fbf445327..1d662540a522a9020a33ea2df9d9696994d97167 100644 (file)
@@ -1324,7 +1324,7 @@ wxPyCBInputStream::wxPyCBInputStream(PyObject *r, PyObject *s, PyObject *t, bool
 
 
 wxPyCBInputStream::~wxPyCBInputStream() {
-    bool blocked;
+    bool blocked=false;
     if (m_block) blocked = wxPyBeginBlockThreads();
     Py_XDECREF(m_read);
     Py_XDECREF(m_seek);
@@ -1334,7 +1334,7 @@ wxPyCBInputStream::~wxPyCBInputStream() {
 
 
 wxPyCBInputStream* wxPyCBInputStream::create(PyObject *py, bool block) {
-    bool blocked;
+    bool blocked=false;
     if (block) blocked = wxPyBeginBlockThreads();
 
     PyObject* read = getMethod(py, "read");