Change in ...libosmocore[master]: vty/telnet_interface.c: avoid unneeded initialization

fixeria gerrit-no-reply at lists.osmocom.org
Sat Jul 27 19:35:14 UTC 2019


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/14971


Change subject: vty/telnet_interface.c: avoid unneeded initialization
......................................................................

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
---
M src/vty/telnet_interface.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/71/14971/1

diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c
index c16b0b1..d44754c 100644
--- a/src/vty/telnet_interface.c
+++ b/src/vty/telnet_interface.c
@@ -210,7 +210,7 @@
 /*! 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;
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/14971
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: If9fd2826f132dfa203dda62940d93dbdfcfd92ac
Gerrit-Change-Number: 14971
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190727/999c0d6d/attachment.html>


More information about the gerrit-log mailing list