From: compudj Date: Mon, 5 Jun 2006 03:41:17 +0000 (+0000) Subject: update parser X-Git-Tag: v0.12.20~1595 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=384d01994576afd6a37b55c60451570aa78ec919;p=lttv.git update parser git-svn-id: http://ltt.polymtl.ca/svn@1894 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent/parser.c b/genevent/parser.c index 3bc227cf..ab24a6c2 100644 --- a/genevent/parser.c +++ b/genevent/parser.c @@ -750,8 +750,10 @@ type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType, //getLAnglebracket(in); // /* subfield */ - f = (field_t *)memAlloc(sizeof(field_t)); - sequence_push(&(t->fields),f); + f = (field_t *)memAlloc(sizeof(field_t)); + + f->name = NULL; + sequence_push(&(t->fields),f); parseFields(in, f, unnamed_types, named_types, 0); //getLAnglebracket(in); // @@ -772,14 +774,16 @@ type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType, //getLAnglebracket(in); // /* subfield */ - f = (field_t *)memAlloc(sizeof(field_t)); - sequence_push(&(t->fields),f); + f = (field_t *)memAlloc(sizeof(field_t)); + f->name = NULL; + sequence_push(&(t->fields),f); parseFields(in, f, unnamed_types, named_types, 0); //getLAnglebracket(in); // /* subfield */ - f = (field_t *)memAlloc(sizeof(field_t)); - sequence_push(&(t->fields),f); + f = (field_t *)memAlloc(sizeof(field_t)); + f->name = NULL; + sequence_push(&(t->fields),f); parseFields(in, f, unnamed_types, named_types, 0); //getLAnglebracket(in); // @@ -838,7 +842,7 @@ type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType, str = allocAndCopy(getNameAttribute(in)); has_value = getValueAttribute(in, &loc_value); - sequence_push(&(t->labels),str); + sequence_push(&(t->labels),str); if(has_value) value = loc_value; else value++;