avoid a null-reference
This commit is contained in:
parent
f99f25cc5f
commit
e2b5163869
|
@ -246,7 +246,8 @@ getstring(isident)
|
|||
#ifdef CHECKING
|
||||
if (strleft < 0) {
|
||||
xerror("Negative length in string");
|
||||
return 0;
|
||||
s->length = 0;
|
||||
return s;
|
||||
}
|
||||
#endif CHECKING
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue