Recently Written · git

sacc

Mirror of git://bitreich.org/sacc, the sacc gopher client from bitreich.org.

git clone https://github.com/equwal/sacc

Log | Files | Refs


commit 1f9509a7c5ab03ab79d64212113bd83f194dcbcb
Hiltjo Posthuma <hiltjo@codemadness.org>
2022-03-27 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.

 sacc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sacc.c b/sacc.c
index a3553fb..5acc4f2 100644
--- 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;