aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-24 16:18:48 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-24 16:18:48 -0400
commit97ab5131530148b3ea01716a54e0c39c9f200a84 (patch)
tree816b677534ef181259986f296d1331f146349100
parent5570710481e3d2bff5fe914c7720ae62f9725fab (diff)
downloadstasis-97ab5131530148b3ea01716a54e0c39c9f200a84.tar.gz
Remove incorrect equality check.
-rw-r--r--src/lib/core/system.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/core/system.c b/src/lib/core/system.c
index 8a6143c..b00762c 100644
--- a/src/lib/core/system.c
+++ b/src/lib/core/system.c
@@ -180,9 +180,8 @@ char *shell_output(const char *command, int *status) {
char *tmp = realloc(result, sizeof(*result) * current_size);
if (!tmp) {
return NULL;
- } else if (tmp != result) {
- result = tmp;
}
+ result = tmp;
}
strncat(result, line, current_size - strlen(result) - 1);
memset(line, 0, sizeof(line));