}
typedef struct {
- agxbuf xml_attr_name;
agxbuf xml_attr_value;
agxbuf composite_buffer;
char* gname;
static void freeUserdata(userdata_t * ud)
{
dtclose(ud->nameMap);
- agxbfree(&(ud->xml_attr_name));
agxbfree(&(ud->xml_attr_value));
agxbfree(&(ud->composite_buffer));
freeString(&ud->elements);
ud->closedElementType = TAG_EDGE;
ud->edgeinverted = FALSE;
} else if (strcmp(name, "attr") == 0) {
- char *name;
+ char *name = "";
char *value;
ud->closedElementType = TAG_NONE;
- name = agxbuse(&ud->xml_attr_name);
value = agxbuse(&ud->xml_attr_value);
setAttr(name, value, ud);