diff --git a/src/common/tarstrm.cpp b/src/common/tarstrm.cpp index 87074cc278..ef74c3d8ef 100644 --- a/src/common/tarstrm.cpp +++ b/src/common/tarstrm.cpp @@ -902,7 +902,7 @@ wxTarNumber wxTarInputStream::GetHeaderNumber(int id) const if ((value = GetExtendedHeader(m_hdr->Name(id))) != wxEmptyString) { wxTarNumber n = 0; wxString::const_iterator p = value.begin(); - while (*p == ' ' && p != value.end()) + while (p != value.end() && *p == ' ') p++; while (isdigit(*p)) n = n * 10 + (*p++ - '0');