summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas H. P. Andersen <phomes@gmail.com>2016-10-11 02:12:40 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-10 20:12:40 -0400
commit01b0669e9ac772d8eeed447ee469b7d4131c3ced (patch)
tree68dda7e1b6975fcda74e7ef4207b4e523b13e444 /src
parentc637e72b7ac8a6283e7fc3939f089ee59394c08c (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.
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-stub.c2
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);