From a21843a0a039306f63b4a11472d1ba496a50edec Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 29 Jul 2017 19:45:07 +0100 Subject: [PATCH] ssld: avoid clang static analysis warning --- ssld/ssld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssld/ssld.c b/ssld/ssld.c index fa222de3..6100d539 100644 --- a/ssld/ssld.c +++ b/ssld/ssld.c @@ -561,7 +561,6 @@ conn_mod_read_cb(rb_fde_t *fd, void *data) { char inbuf[READBUF_SIZE]; conn_t *conn = data; - const char *err = remote_closed; int length; if(conn == NULL) return; @@ -591,6 +590,7 @@ conn_mod_read_cb(rb_fde_t *fd, void *data) return; } + const char *err; if(IsSSL(conn) && length == RB_RW_SSL_ERROR) err = rb_get_ssl_strerror(conn->mod_fd); else