Polish 59034c01

Based on feedback from Dridi
parent cdadc4be
...@@ -472,6 +472,7 @@ VCC_GlobalSymbol(struct symbol *sym, vcc_type_t type, const char *pfx) ...@@ -472,6 +472,7 @@ VCC_GlobalSymbol(struct symbol *sym, vcc_type_t type, const char *pfx)
VCC_PrintCName(vsb, sym->name, NULL); VCC_PrintCName(vsb, sym->name, NULL);
AZ(VSB_finish(vsb)); AZ(VSB_finish(vsb));
sym->lname = strdup(VSB_data(vsb)); sym->lname = strdup(VSB_data(vsb));
AN(sym->lname);
if (type == SUB) { if (type == SUB) {
VSB_destroy(&vsb); VSB_destroy(&vsb);
vsb = VSB_new_auto(); vsb = VSB_new_auto();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment