aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/telnet_interface.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-26 20:25:23 +0200
committerHarald Welte <laforge@gnumonks.org>2009-06-26 20:25:23 +0200
commit470ec29b0db526c1592f6a270652657315efddca (patch)
tree7da372db125bc09f31076a57e484165641c3d3ff /openbsc/src/telnet_interface.c
parentc05677b036dce4dbf59414dc15b75a5b3472ae6e (diff)
use taloc_zero() rather than talloc() and explisit memset()
Diffstat (limited to 'openbsc/src/telnet_interface.c')
-rw-r--r--openbsc/src/telnet_interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/telnet_interface.c b/openbsc/src/telnet_interface.c
index 5cc6ea0af..7a67fe1de 100644
--- a/openbsc/src/telnet_interface.c
+++ b/openbsc/src/telnet_interface.c
@@ -167,8 +167,7 @@ static int telnet_new_connection(struct bsc_fd *fd, unsigned int what) {
}
- connection = talloc(tall_telnet_ctx, struct telnet_connection);
- memset(connection, 0, sizeof(*connection));
+ connection = talloc_zero(tall_telnet_ctx, struct telnet_connection);
connection->network = (struct gsm_network*)fd->data;
connection->fd.data = connection;
connection->fd.fd = new_connection;