resolved: avoid passing unitialized variable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Apr 2021 09:12:57 +0000 (11:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Apr 2021 10:02:25 +0000 (12:02 +0200)
commite7d48709ed6c8569286463552f3df36bbdce8824
tree536e637e0bb24fe624b3a19351f94b67f8e0749f
parentaff81b1851593ee8aa9875b72940affece0a7bfe
resolved: avoid passing unitialized variable

The issue was introduced in the refactoring in 775ae35403f8f3c01b7ac13387fe8aac1759993f.
We would pass an initialized value to a helper function. We would only *use*
it if it was initialized. But the mere passing of an unitialized variable is
UB, so let's not do that. This silences a gcc warning.
src/resolve/resolved-dns-cache.c