Simplify ".."
This commit is contained in:
parent
ec7a0dc95f
commit
f156c67e34
4
ell.c
4
ell.c
|
@ -1053,10 +1053,8 @@ defn (fn_concatenate) {
|
||||||
}
|
}
|
||||||
buffer_append (&buf, args->value, args->len);
|
buffer_append (&buf, args->value, args->len);
|
||||||
}
|
}
|
||||||
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 - 1)));
|
&& check (ctx, (*result = new_string (buf.s, buf.len)));
|
||||||
free (buf.s);
|
free (buf.s);
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue