Slightly fix fn_concatenate()
This commit is contained in:
parent
d2155031d0
commit
5307d24315
4
ell.c
4
ell.c
|
@ -1024,8 +1024,8 @@ defn (fn_concatenate) {
|
||||||
}
|
}
|
||||||
buffer_append_c (&buf, '\0');
|
buffer_append_c (&buf, '\0');
|
||||||
|
|
||||||
bool ok = !(ctx->memory_failure = buf.memory_failure)
|
bool ok = !(ctx->memory_failure |= buf.memory_failure)
|
||||||
&& check (ctx, (*result = new_string (buf.s, buf.len)));
|
&& check (ctx, (*result = new_string (buf.s, buf.len - 1)));
|
||||||
free (buf.s);
|
free (buf.s);
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue