cmXml.c : Fixed bug in _cmXmlNoteHasChildWithAttrAndValue().
This commit is contained in:
parent
d7a7b3a895
commit
0bd988e2df
6
cmXml.c
6
cmXml.c
@ -1072,15 +1072,17 @@ bool _cmXmlNodeHasChildWithAttrAndValueV( const cmXmlNode_t* np, const cmChar
|
||||
if( argN <= n-1 )
|
||||
return false;
|
||||
|
||||
argN -= n;
|
||||
|
||||
va_copy(vl1,vl0);
|
||||
np = _cmXmlNodeHasChildV(np,label,vl1,argN-1);
|
||||
np = _cmXmlNodeHasChildV(np,label,vl1,argN);
|
||||
va_end(vl1);
|
||||
|
||||
if( np == NULL )
|
||||
return false;
|
||||
|
||||
// advance vl0 to the attribute label
|
||||
for(i=0; i<argN-1; ++i)
|
||||
for(i=1; i<argN; ++i)
|
||||
{
|
||||
label = va_arg(vl0,const cmChar_t*);
|
||||
assert( label != NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user