Commit 00eaed81 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vcc: Flexelint still thinks sym could be null

When we check sym->wildcard for quoted headers.
parent c71ab01e
......@@ -314,9 +314,7 @@ VCC_SymbolGet(struct vcc *tl, vcc_ns_t ns, vcc_kind_t kind,
if (tn1->tok != '.')
break;
tn1 = vcc_PeekTokenFrom(tl, tn1);
if (tn1->tok == CSTR && sym == NULL)
break;
if (tn1->tok == CSTR && sym->wildcard == NULL)
if (tn1->tok == CSTR && (sym == NULL || sym->wildcard == NULL))
break;
if (tn1->tok != CSTR && tn1->tok != ID)
break;
......
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