aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:23:57 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:23:57 -0400
commit9ee2ab3927b62e1cb32d0eb94b78161ebeaabc93 (patch)
tree9a794adad6974efdccd7f1d6d9de44f8d295e399 /src
parent00dc955382a017d91f7071401e8c9beda241662e (diff)
downloadstasis-9ee2ab3927b62e1cb32d0eb94b78161ebeaabc93.tar.gz
grow: remove pointless branch
Diffstat (limited to 'src')
-rw-r--r--src/lib/core/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c
index deeca91..b70b713 100644
--- a/src/lib/core/utils.c
+++ b/src/lib/core/utils.c
@@ -1009,9 +1009,7 @@ int grow(const size_t size_new, size_t *size_orig, char **data) {
perror("realloc failed");
return -1;
}
- if (tmp != *data) {
- *data = tmp;
- }
+ *data = tmp;
*size_orig = new_size;
}
return 0;