From: Włodzimierz Skiba Date: Thu, 7 Apr 2005 12:40:26 +0000 (+0000) Subject: Warning fix about possibly misplaced assignment. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/49178e6501de6fb67747453a36144998ae976f03?ds=inline Warning fix about possibly misplaced assignment. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index 9f40072133..c9a379ce13 100644 --- a/src/common/fs_zip.cpp +++ b/src/common/fs_zip.cpp @@ -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;