commit 7f947bf8cb8b749ef9665f59f28bdc30910c2b69
parent 4c8b6cb5012505cd586a908292ca345ef7a2012e
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Mon, 4 Oct 2021 13:26:08 -0500
npm-agent: set ret non-zero
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npm-agent.c b/npm-agent.c
@@ -71,7 +71,7 @@ xwrite(int fd, char *buf, size_t count)
int
read_to_nl(int fd, char *buf)
{
- ssize_t ret;
+ ssize_t ret = -1;
size_t len = 0;
char *ptr = buf;
while (ret && len <= PASSWORD_MAX_LEN && !memchr(buf, '\n', len)) {