From f2f4bfa8fbaf2eb0b6bc1f2722889a025d7acd73 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 25 Apr 2018 14:15:45 -0700 Subject: [PATCH] TMXR: Fix potential uninitialized variable reference Coverity warning The uninitialized case would never occur since the routing containing that code would never be called when the conditions that would leave the variable uninitialized. --- sim_tmxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index dbb3d20d..9a6ef98f 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -704,7 +704,7 @@ else /* Telnet connection */ static int32 tmxr_write (TMLN *lp, int32 length) { -int32 written; +int32 written = 0; int32 i = lp->txbpr; if ((lp->txbps) && (sim_gtime () < lp->txnexttime) && (sim_is_running))