[PATCH] cpukit/libdebugger: Fix for sockaddr_in not being initialized
Harrison Edward Gerber
gerberhe11 at gmail.com
Tue Jun 1 18:05:54 UTC 2021
From: Harrison Edward Gerber <gerberhe11 at gmail.com>
See also CID 1468684
Closes #4445
---
cpukit/libdebugger/rtems-debugger-remote-tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libdebugger/rtems-debugger-remote-tcp.c b/cpukit/libdebugger/rtems-debugger-remote-tcp.c
index 696e2deb8c..440baa9b66 100644
--- a/cpukit/libdebugger/rtems-debugger-remote-tcp.c
+++ b/cpukit/libdebugger/rtems-debugger-remote-tcp.c
@@ -122,7 +122,7 @@ static int
tcp_remote_connect(rtems_debugger_remote* remote)
{
int ld;
- struct sockaddr_in addr;
+ struct sockaddr_in addr = {0};
socklen_t opt;
socklen_t len;
bool running;
--
2.25.1
More information about the devel
mailing list