diff options
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)); |
