Skip to content

Commit 2b28c1d

Browse files
Fix --disable-tls
1 parent 3932322 commit 2b28c1d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/net.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ int sockgets(char *s, int *len)
12991299
void tputs(int z, char *s, unsigned int len)
13001300
{
13011301
int i, x, idx;
1302-
char *p, *s2;
1302+
char *p, *s2 = 0;
13031303
static int inhere = 0;
13041304
struct threaddata *td = threaddata();
13051305

@@ -1363,7 +1363,9 @@ void tputs(int z, char *s, unsigned int len)
13631363
x = -1;
13641364
}
13651365
} else /* not ssl, use regular write() */
1366-
#endif
1366+
#else
1367+
s2 = s;
1368+
#endif /* TLS */
13671369
/* Try. */
13681370
x = write(z, s2, len);
13691371
if (x == -1)

0 commit comments

Comments
 (0)