stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r555006 - /incubator/stdcxx/trunk/src/catalog.cpp
Date Wed, 11 Jul 2007 19:13:43 GMT
faridz@apache.org wrote:
> 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 <Farid_Zaripov@epam.com>
> 
> 	* catalog.cpp (catopen): while() loop replaced to for() loop
> 	with checking for max iterations.

Does this fix a bug? If it does, is the bug easily reproducible
so we can add a test case for it to the bug tracking database?

Martin

> 
> 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;
> 
> 


Mime
View raw message