Initialize devinfo at misdn.c

Valgrind did complain about use of uninitialized data.

Change-Id: I3a60eee96366561acac9ccfc92eb0d6ca828b7b9
This commit is contained in:
Andreas Eversberg 2022-12-04 13:12:33 +01:00
parent 32a208781a
commit d2b951fe74
1 changed files with 1 additions and 0 deletions

View File

@ -822,6 +822,7 @@ static int _mi_e1_line_update(struct e1inp_line *line)
//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) {