From e011c2cf9235c69071556d4ac5596023973b6b24 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 20 Jun 2024 00:08:21 +0200 Subject: Remove unreachable condition --- cbs.h | 2 -- 1 file changed, 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); -- cgit v1.2.3