mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: Uninitialize variable
Signed-off-by: Jitpanu Maneeratpongsuk <jitpanu.maneeratpongsuk@rwth-aachen.de>
This commit is contained in:
parent
c07679bc32
commit
d3cbf876cf
1 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,8 @@ int villas::node::socket_start(NodeCompat *n) {
|
|||
|
||||
if (s->layer != SocketLayer::TCP_CLIENT)
|
||||
ret = bind(s->sd, (struct sockaddr *)&s->in.saddr, addrlen);
|
||||
else
|
||||
ret = 0;
|
||||
|
||||
if (ret < 0)
|
||||
throw SystemError("Failed to bind socket");
|
||||
|
|
Loading…
Add table
Reference in a new issue