diff options
-rw-r--r-- | src/system.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/system.c b/src/system.c index 1701523..ca2da97 100644 --- a/src/system.c +++ b/src/system.c @@ -161,8 +161,7 @@ char *shell_output(const char *command, int *status) { char *tmp = realloc(result, sizeof(*result) * current_size); if (!tmp) { return NULL; - } - if (tmp != result) { + } else if (tmp != result) { result = tmp; } } |