diff options
author | Thomas H. P. Andersen <phomes@gmail.com> | 2016-10-11 02:12:40 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-10-10 20:12:40 -0400 |
commit | 01b0669e9ac772d8eeed447ee469b7d4131c3ced (patch) | |
tree | 68dda7e1b6975fcda74e7ef4207b4e523b13e444 | |
parent | c637e72b7ac8a6283e7fc3939f089ee59394c08c (diff) |
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.
-rw-r--r-- | src/resolve/resolved-dns-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-stub.c b/src/resolve/resolved-dns-stub.c index b1c570cee6..e76de6c06a 100644 --- a/src/resolve/resolved-dns-stub.c +++ b/src/resolve/resolved-dns-stub.c @@ -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); |