mirror of https://github.com/qt/qtbase.git
Fix FindWrapResolv on systems that complaing about uninit vars
The compile test would fail on certain systems due to usage of
uninitialized variable.
Amends 4a46ba1209
Fixes: QTBUG-120141
Pick-to: 6.7 6.6
Change-Id: I4ebbd9dcc820a26c4f8cec0460c5dacbd85c4d4a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
64a283a988
commit
7596476366
|
@ -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…
Reference in New Issue