resolved: initialize variable (#4338)

r was not initialized and would be used if "tcp" was the only option
used for the stub. We should initialize it to 0 to indicate that no
error happened in the udp case.
This commit is contained in:
Thomas H. P. Andersen
2016-10-10 20:12:40 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent c637e72b7a
commit 01b0669e9a
+1 -1
View File
@@ -498,7 +498,7 @@ static int manager_dns_stub_tcp_fd(Manager *m) {
int manager_dns_stub_start(Manager *m) {
const char *t = "UDP";
int r;
int r = 0;
assert(m);