aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-27 21:58:44 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-27 21:58:55 +0700
commita9a8ea5347749adb8e08ad575926869bce7a771c (patch)
treef6e2253e7b0ab5f562a76f3904df2da84eed7475
parent0ba357343be2559d367c3a2ec036bde6968bb941 (diff)
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
-rw-r--r--src/vty/telnet_interface.c2
1 files changed, 1 insertions, 1 deletions
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;