commit 1f9509a7c5ab03ab79d64212113bd83f194dcbcb
parent cb05caeda420012e03188d8f2cde8b80a166aeb1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Mar 2022 13:21:25 +0200
fix compilation without TLS support enabled in config.mk
Clear the struct cnx so no extra #ifdef for USE_TLS is needed.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sacc.c b/sacc.c
@@ -576,7 +576,7 @@ static int
download(Item *item, int dest)
{
char buf[BUFSIZ];
- struct cnx c;
+ struct cnx c = { 0 };
ssize_t r, w;
if (item->tag == NULL) {
@@ -590,7 +590,6 @@ download(Item *item, int dest)
errno = 0;
return 0;
}
- c.tls = NULL;
}
w = 0;