Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
0979a67a
Commit
0979a67a
authored
Aug 24, 2021
by
Antoine Kaufmann
Browse files
dist/common: make sure peer struct is zeroed
parent
d5d6e3d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
dist/common/net.c
dist/common/net.c
+1
-0
No files found.
dist/common/net.c
View file @
0979a67a
...
@@ -89,6 +89,7 @@ bool NetPeerAdd(const char *path, bool dev) {
...
@@ -89,6 +89,7 @@ bool NetPeerAdd(const char *path, bool dev) {
peer
+=
peer_num
;
peer
+=
peer_num
;
peer_num
++
;
peer_num
++
;
memset
(
peer
,
0
,
sizeof
(
*
peer
));
if
(
!
(
peer
->
sock_path
=
strdup
(
path
)))
{
if
(
!
(
peer
->
sock_path
=
strdup
(
path
)))
{
perror
(
"NetPeerAdd: strdup failed"
);
perror
(
"NetPeerAdd: strdup failed"
);
return
false
;
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment