Commit b6cd381
tests/net/conn_mgr_nsos: Initialize address to 0 to avoid valgrind warning
Initialize the whole address to 0, to avoid a valgrind warning when
a copy of the address is passed to the Linux kernel:
```
Syscall param socketcall.sendto(to.sin_addr) points to uninitialised bytes
at _dl_sysinfo_int80 (in /usr/lib/i386-linux-gnu/ld-linux.so.2)
by sendto (sendto.c:30)
by nsos_adapt_sendto (nsos_adapt.c:544)
```
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>1 parent 06a4cff commit b6cd381
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments