aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;