Fix root scope for parser/lexer type info
[babeltrace.git] / 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.022527 seconds and 4 git commands to generate.