Fix root scope for parser/lexer type info
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Feb 2011 04:26:47 +0000 (23:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Feb 2011 04:26:47 +0000 (23:26 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-parser.y

index ee56638ad12ebd0b03edcfe5a81a162ee61ce5c5..6f0efe25e26063a8818a57199bc856b86d3c9913 100644 (file)
@@ -704,6 +704,7 @@ struct ctf_scanner *ctf_scanner_alloc(FILE *input)
        if (!scanner->ast)
                goto cleanup_lexer;
        init_scope(&scanner->root_scope, NULL);
+       scanner->cs = &scanner->root_scope;
        CDS_INIT_LIST_HEAD(&scanner->allocated_strings);
 
        return scanner;
This page took 0.024883 seconds and 4 git commands to generate.