Fixed use of uninitialized/unallocated object.

This commit is contained in:
Erik Verbruggen
2009-10-26 10:19:44 +01:00
parent 3e953b0323
commit f4047ac8bf

View File

@@ -4595,6 +4595,7 @@ bool Parser::parseObjCMethodDefinitionList(DeclarationListAST *&node)
last->next = new (_pool) ObjCSynthesizedPropertyListAST;
last = last->next;
last->synthesized_property = new (_pool) ObjCSynthesizedPropertyAST;
match(T_IDENTIFIER, &(last->synthesized_property->property_identifier));
if (LA() == T_EQUAL) {