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 Pick-to: 6.6 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>
This commit is contained in:
parent
61566fa52d
commit
79d32d5b02
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user