avoid a null-reference
This commit is contained in:
parent
f41c7fb3ae
commit
cc8a28ef83
@ -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…
x
Reference in New Issue
Block a user