aboutsummaryrefslogtreecommitdiff
path: root/src/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c3
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;
}
}