diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-06-01 15:23:32 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-06-01 15:23:32 +0300 |
commit | 04515b33ce805aa558131a1ae9ed7f6f357b1c56 (patch) | |
tree | f9548aa1677964be4d4432c7fa2226ae8d97d6d6 | |
parent | d0e3c72a728e84a3fb39c0618516fb94e27ddf71 (diff) |
Uninitialized value in remmina_protocol_widget_tunnel_destroyref/general-fixes
-rw-r--r-- | src/remmina_protocol_widget.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/remmina_protocol_widget.c b/src/remmina_protocol_widget.c index 26dfcf1be..2cc150146 100644 --- a/src/remmina_protocol_widget.c +++ b/src/remmina_protocol_widget.c @@ -1020,14 +1020,13 @@ static gboolean remmina_protocol_widget_tunnel_destroy(RemminaSSHTunnel *tunnel, { TRACE_CALL(__func__); RemminaProtocolWidget *gp = REMMINA_PROTOCOL_WIDGET(data); - guint idx; - gboolean found; + guint idx = 0; #if GLIB_CHECK_VERSION(2, 54, 0) - found = g_ptr_array_find(gp->priv->ssh_tunnels, tunnel, &idx); + gboolean found = g_ptr_array_find(gp->priv->ssh_tunnels, tunnel, &idx); #else int i; - found = FALSE; + gboolean found = FALSE; for (i = 0; i < gp->priv->ssh_tunnels->len; i++) { if ((RemminaSSHTunnel *)gp->priv->ssh_tunnels->pdata[i] == tunnel) { found = TRUE; |