Oops, forgot the list...<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Anton Protopopov</b> <<a href="mailto:aspsk2@gmail.com">aspsk2@gmail.com</a>><br>
Date: 21.02.2008 21:25<br>Subject: Re: [Libvir] [PATCH] Useless statement in openvzGetVPSInfo<br>To: <a href="mailto:veillard@redhat.com">veillard@redhat.com</a><br><br></span>I think, that if<br>    pnext = &vm;<br>and<br>
    *pnext = calloc(...);<br>then<br>    vm = calloc(...);<br><br>Isn't it?<br><br><div><span class="gmail_quote">2008/2/21, Daniel Veillard <<a href="mailto:veillard@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">veillard@redhat.com</a>>:</span><div>
<span class="e" id="q_1183d3e82eb60fc3_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Feb 21, 2008 at 08:59:01PM +0300, Anton Protopopov wrote:<br> ><br> >    Hi,<br> >    the patch is now in attachement..<br> >    I think, that the statement<br> >        if (!vm)<br> >             vm = *pnext;<br>

 >    will  never be executed: in the first pass, we have already check this<br> >    a few lines before; in next passes, vm remains the same...<br> >    Anton<br> <br> <br>  Hum, that doesn't match what I see. vm is initialized to NULL on entry<br>

 and no changed before the loop, so on first iteration of the loop vm is<br> set using that code.<br>  I don't understand the logic of your patch,<br> <br> Daniel<br> <br><br> --<br> Red Hat Virtualization group <a href="http://redhat.com/virtualization/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://redhat.com/virtualization/</a><br>

 Daniel Veillard      | virtualization library  <a href="http://libvirt.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://libvirt.org/</a><br> <a href="mailto:veillard@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">veillard@redhat.com</a>  | libxml GNOME XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://xmlsoft.org/</a><br>

 <a href="http://veillard.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://veillard.com/</a> | Rpmfind RPM search engine  <a href="http://rpmfind.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://rpmfind.net/</a><br>
 </blockquote></span></div></div><br>