[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] bug in libvirt.c?



On Thu, Jul 10, 2008 at 06:49:22PM +0400, Evgeniy Sokolov wrote:
>  for (i = 0; i < virNetworkDriverTabCount; i++) {
>                 if ((virDriverTab[i]->probe != NULL) &&
>                     ((latest = virDriverTab[i]->probe()) != NULL)) {
>                     probes++;
> 
>                  .....
>                 }
>  }
> 
> We use array virDriverTab, but cicle is to virNetworkDriverTabCount 
> which count number of virNetworkDriverTab drivers.
> I think virDriverTabCount should be used.

  Urgh, good catch !

  Applied and commited,

   thanks !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]