diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-24 16:18:48 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-24 16:18:48 -0400 |
| commit | 97ab5131530148b3ea01716a54e0c39c9f200a84 (patch) | |
| tree | 816b677534ef181259986f296d1331f146349100 /src | |
| parent | 5570710481e3d2bff5fe914c7720ae62f9725fab (diff) | |
| download | stasis-97ab5131530148b3ea01716a54e0c39c9f200a84.tar.gz | |
Remove incorrect equality check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/system.c | 3 |
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)); |
