From a9a8ea5347749adb8e08ad575926869bce7a771c Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 27 Jul 2019 21:58:44 +0700 Subject: vty/telnet_interface.c: avoid unneeded initialization Unconditional initialization follows the structure definition, so there is no need to do it twice. This prevents compiler from warning about potential errors. Change-Id: If9fd2826f132dfa203dda62940d93dbdfcfd92ac --- src/vty/telnet_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c index c16b0b16..d44754cf 100644 --- a/src/vty/telnet_interface.c +++ b/src/vty/telnet_interface.c @@ -210,7 +210,7 @@ bool vty_is_active(struct vty *vty) /*! callback from core VTY code about VTY related events */ void vty_event(enum event event, int sock, struct vty *vty) { - struct vty_signal_data sig_data = { 0, }; + struct vty_signal_data sig_data; struct telnet_connection *connection = vty->priv; struct osmo_fd *bfd; -- cgit v1.2.3