Fix uninitialized variable

Former-commit-id: 9395a9c1d90859f88f3d82d66e50083c8409a3f8
This commit is contained in:
John Sully 2021-05-25 18:30:07 +00:00
parent e8b330f4ff
commit f1c3a9ffc8

View File

@ -2590,7 +2590,7 @@ static int updateTLSPort(long long val, long long prev, const char **err) {
if (ithread == serverTL - g_pserver->rgthreadvar)
continue; // we already did our thread
aePostFunction(g_pserver->rgthreadvar[ithread].el, [val]{
const char **err;
const char **err = nullptr;
if (!updateTLSPortThread(val, false /*fFirstCall*/, err)) {
serverLog(LL_WARNING, "Failed to update TLS port for a thread: %s", *err);
serverLog(LL_WARNING, "\tKeyDB will still be listening on the old port for some threads.");