found missing spot for fix of revision 350

This commit is contained in:
Dennis Heimbigner 2011-02-16 23:04:07 +00:00
parent ae08ede1fa
commit 00035caeba

View File

@ -1018,7 +1018,7 @@ walktype(Symbol* tsym, Datasrc* src, Datalist* fillsrc)
semerror(srcline(src),"Compound constants must be enclosed in {..}");
}
con = srcnext(src);
if(con->nctype == NC_FILLVALUE) {
if(con == NULL || con->nctype == NC_FILLVALUE) {
dl = getfiller(tsym,fillsrc);
ASSERT(dl->length == 1);
con = &dl->data[0];
@ -1040,7 +1040,7 @@ walktype(Symbol* tsym, Datasrc* src, Datalist* fillsrc)
semerror(srcline(src),"Vlen constants must be enclosed in {..}");
}
con = srcnext(src);
if(con->nctype == NC_FILLVALUE) {
if(con == NULL || con->nctype == NC_FILLVALUE) {
dl = getfiller(tsym,fillsrc);
ASSERT(dl->length == 1);
con = &dl->data[0];