* BUG: Fix attribute initialization method.

git-svn-id: svn://localhost/gambas/trunk@7226 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Adrien Prokopowicz 2015-08-15 21:32:33 +00:00
parent ffc6e254c2
commit 784047e199

View file

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