Jolly has uploaded this change for review.

View Change

Initialize devinfo at misdn.c

Valgrind did complain about use of uninitialized data.

Change-Id: I3a60eee96366561acac9ccfc92eb0d6ca828b7b9
---
M src/input/misdn.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/49/30449/1
diff --git a/src/input/misdn.c b/src/input/misdn.c
index 9018fad..580bee0 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -820,6 +820,7 @@
//LOGPIL(line, DLMI, LOGL_DEBUG, "%d device%s found\n", cnt, (cnt==1)?"":"s");
printf("%d device%s found\n", cnt, (cnt==1)?"":"s");
#if 1
+ memset(&devinfo, 0, sizeof(devinfo));
devinfo.id = line->port_nr;
ret = ioctl(sk, IMGETDEVINFO, &devinfo);
if (ret < 0) {

To view, visit change 30449. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I3a60eee96366561acac9ccfc92eb0d6ca828b7b9
Gerrit-Change-Number: 30449
Gerrit-PatchSet: 1
Gerrit-Owner: Jolly <andreas@eversberg.eu>
Gerrit-MessageType: newchange