]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix about possibly misplaced assignment.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 7 Apr 2005 12:40:26 +0000 (12:40 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 7 Apr 2005 12:40:26 +0000 (12:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fs_zip.cpp

index 9f4007213367b5b25e9eb818929cca707c367b06..c9a379ce13ab640b8abe4cf7f8cb519f3c6dac5e 100644 (file)
@@ -109,9 +109,12 @@ wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& fs, const wxString& location)
     s = new wxZipFSInputStream(leftFile);
     if (s && s->IsOk())
     {
-       wxZipEntry *ent;
        bool found = false;
-       while (!found && (ent = s->GetNextEntry())) {
+       while (!found)
+       {
+           wxZipEntry *ent = s->GetNextEntry();
+           if (!ent)
+               break;
            if (ent->GetInternalName() == right)
                found = true;
            delete ent;