fix string_inject in rre (thanks @Mokona@octodon.social for finding this bug)
FossilOrigin-Name: acf755ae7b2d5485687f686fc59f71fcabd3c60e185d694e8ece1e7462974e87
This commit is contained in:
parent
a452de62a6
commit
80c2ac7f0d
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ void stack_push(CELL value) {
|
|||
strings. */
|
||||
|
||||
int string_inject(char *str, int buffer) {
|
||||
if (!str) {
|
||||
memory[buffer] = 0;
|
||||
return 0;
|
||||
}
|
||||
int m = strlen(str);
|
||||
int i = 0;
|
||||
while (m > 0) {
|
||||
|
|
Loading…
Reference in a new issue