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:
committed by
Zbigniew Jędrzejewski-Szmek
parent
c637e72b7a
commit
01b0669e9a
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user