commit f2542dd0d235474b6df46dcb7f5b4eafbccfde48 parent 43d82dca8b48d67c7223eb1a4d5c7166409aef9e Author: Louis Burda <quent.burda@gmail.com> Date: Thu, 25 May 2023 16:17:28 +0200 Remove adjusting dsize on dvec_copy Diffstat:
M | src/dvec.c | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/dvec.c b/src/dvec.c @@ -90,9 +90,8 @@ dvec_copy(struct dvec *dst, struct dvec *src) { int rc; - LIBDVEC_ABORT_ON_ARGS(!dst || !src); + LIBDVEC_ABORT_ON_ARGS(!dst || !src || dst->dsize != src->dsize); - dst->dsize = src->dsize; rc = dvec_reserve(dst, src->len); if (rc) return rc;