[GB.XML]
* BUG: Fix attribute initialization method. git-svn-id: svn://localhost/gambas/trunk@7226 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
ffc6e254c2
commit
784047e199
1 changed files with 5 additions and 0 deletions
|
@ -305,6 +305,11 @@ Attribute* XMLAttribute_New(const char *nattrName, const size_t nlenAttrName,
|
|||
newAttr->attrValue = (char*)malloc(nlenAttrVal);
|
||||
memcpy(newAttr->attrValue, nattrVal, nlenAttrVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
newAttr->attrValue = 0;
|
||||
newAttr->lenAttrValue = 0;
|
||||
}
|
||||
|
||||
return newAttr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue