Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 29967 invoked from network); 10 Jul 2007 16:55:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 16:55:26 -0000 Received: (qmail 46683 invoked by uid 500); 10 Jul 2007 16:55:28 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 46664 invoked by uid 500); 10 Jul 2007 16:55:28 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 46643 invoked by uid 99); 10 Jul 2007 16:55:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 09:55:28 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 09:55:24 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 58ED51A981A; Tue, 10 Jul 2007 09:55:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r555006 - /incubator/stdcxx/trunk/src/catalog.cpp Date: Tue, 10 Jul 2007 16:55:04 -0000 To: stdcxx-commits@incubator.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070710165504.58ED51A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Tue Jul 10 09:55:02 2007 New Revision: 555006 URL: http://svn.apache.org/viewvc?view=rev&rev=555006 Log: 2007-07-10 Farid Zaripov * catalog.cpp (catopen): while() loop replaced to for() loop with checking for max iterations. Modified: incubator/stdcxx/trunk/src/catalog.cpp Modified: incubator/stdcxx/trunk/src/catalog.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/catalog.cpp?view=diff&rev=555006&r1=555005&r2=555006 ============================================================================== --- incubator/stdcxx/trunk/src/catalog.cpp (original) +++ incubator/stdcxx/trunk/src/catalog.cpp Tue Jul 10 09:55:02 2007 @@ -95,8 +95,7 @@ if (cat && cat->good()) { CatVector::size_type i = 0; - while (__rw_catlist[i] != 0) - i++; + for (; i < __rw_catlist.size() && __rw_catlist[i]; ++i) ; if (__rw_catlist.size() == i) __rw_catlist.resize(__rw_catlist.size() * 2,0); __rw_catlist[i] = cat;