SunOS res_ninit() requires a clean structure

Signed-off-by: Denis Kozadaev <denis@dilos.org>

init structure without condition

Signed-off-by: Denis Kozadaev <denis@dilos.org>
pull/76/head
Denis Kozadaev 11 months ago
parent fb1f3d6445
commit 47f034c129

@ -2594,6 +2594,8 @@ void TQDns::doResInit()
if (ns->isEmpty()) {
#if defined(Q_MODERN_RES_API)
struct __res_state res;
/* the storage must be clean */
memset(&res, 0, sizeof(res));
res_ninit( &res );
int i;
// find the name servers to use

Loading…
Cancel
Save