aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);