projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f84cb8
)
Silence a GCC warning in gnunet-nat.c
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Sat, 25 Feb 2017 12:51:14 +0000
(12:51 +0000)
committer
Руслан Ижбулатов
<lrn1986@gmail.com>
Sat, 25 Feb 2017 21:03:14 +0000
(21:03 +0000)
It's unobvious how this variable could be used uninitialized, but GCC complains.
src/nat/gnunet-nat.c
patch
|
blob
|
history
diff --git
a/src/nat/gnunet-nat.c
b/src/nat/gnunet-nat.c
index f198adc0a4508ad2be5e3037922476b4c126d5c7..80bfb5726d83ea28fcec10025785a47ed6a26386 100644
(file)
--- a/
src/nat/gnunet-nat.c
+++ b/
src/nat/gnunet-nat.c
@@
-283,6
+283,9
@@
run (void *cls,
return;
}
}
+
+ remote_len = 0;
+
if (NULL != remote_addr)
{
remote_len = GNUNET_STRINGS_parse_socket_addr (remote_addr,