Fix FindWrapResolv on systems that complaing about uninit vars

The compile test would fail on certain systems due to usage of
uninitialized variable.

Amends 4a46ba1209907796f4a14f6feb35ed4d70155d7d

Fixes: QTBUG-120141
Change-Id: I4ebbd9dcc820a26c4f8cec0460c5dacbd85c4d4a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 75964763660cb131a0afe7b0bc051fd901939821)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 79d32d5b02fa038c95553bdbcd5ec977d1684fce)
This commit is contained in:
Mårten Nordheim 2023-12-15 13:22:51 +01:00 committed by Qt Cherry-pick Bot
parent f5912990ed
commit 3d53016d1b

View File

@ -31,7 +31,7 @@ check_cxx_source_compiles("
int main(int, char **argv)
{
res_state statep;
res_state statep = 0;
int n = res_nmkquery(statep, 0, argv[1], 0, 0, NULL, 0, NULL, NULL, 0);
n = res_nsend(statep, NULL, 0, NULL, 0);
n = dn_expand(NULL, NULL, NULL, NULL, 0);