aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-20 00:08:21 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-20 00:08:21 +0200
commite011c2cf9235c69071556d4ac5596023973b6b24 (patch)
tree053352dc0890c0431c297c2ee1e08ae520e9c642
parent8a675cb4d833ac19e3c1744082cd4d573e87be7b (diff)
Remove unreachable condition
-rw-r--r--cbs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/cbs.h b/cbs.h
index 4018b64..a94d3d9 100644
--- a/cbs.h
+++ b/cbs.h
@@ -327,8 +327,6 @@ cmdexec_read(struct strs xs, char **p, size_t *n)
}
close(fds[R]);
- if (buf != NULL)
- buf[*n] = 0;
free(buf);
return cmdwait(pid);