fixed a crash on error
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40168
This commit is contained in:
parent
f55a7a5663
commit
2892ee1fa9
@ -1751,7 +1751,7 @@ restart:
|
|||||||
sym=cursym;
|
sym=cursym;
|
||||||
if (matchtoken('[') || matchtoken('{') || matchtoken('(')) {
|
if (matchtoken('[') || matchtoken('{') || matchtoken('(')) {
|
||||||
tok=tokeninfo(&val,&st); /* get token read by matchtoken() */
|
tok=tokeninfo(&val,&st); /* get token read by matchtoken() */
|
||||||
magic_string = (sym->tag == pc_tag_string && sym->dim.array.level == 0);
|
magic_string = (sym && (sym->tag == pc_tag_string && sym->dim.array.level == 0));
|
||||||
if (sym==NULL && symtok!=tSYMBOL) {
|
if (sym==NULL && symtok!=tSYMBOL) {
|
||||||
/* we do not have a valid symbol and we appear not to have read a valid
|
/* we do not have a valid symbol and we appear not to have read a valid
|
||||||
* symbol name (so it is unlikely that we would have read a name of an
|
* symbol name (so it is unlikely that we would have read a name of an
|
||||||
|
Loading…
Reference in New Issue
Block a user