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