]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_inet.cpp
make string at least empty (instead of containing garbage) if malloc() failed
[wxWidgets.git] / src / common / fs_inet.cpp
index 1e3d353a7cb77dcf57e8ee5bcc9a356c37530843..217d7bd72cea3d1cd01a3e0e5d8bcf11a1af4a7d 100644 (file)
@@ -160,7 +160,7 @@ wxInternetFSHandler::~wxInternetFSHandler()
     wxInetCacheNode *n2;
 
     m_Cache.BeginFind();
-    while ((n = m_Cache.Next()))
+    while ((n = m_Cache.Next()) != 0)
     {
         n2 = (wxInetCacheNode*) n->GetData();
         wxRemoveFile(n2->GetTemp());