diff options
author | Denis Kozadaev <denis@dilos.org> | 2023-06-14 17:10:42 +0300 |
---|---|---|
committer | Denis Kozadaev <denis@dilos.org> | 2023-06-15 10:25:27 +0300 |
commit | 47f034c129653352ebf258000765f98f1910f2f4 (patch) | |
tree | 0ff8938914b8c3102847c6abaf35e0fbabea456a /src/network | |
parent | fb1f3d64451e8cc405b5db572e2c506564a05680 (diff) | |
download | tqt3-47f034c129653352ebf258000765f98f1910f2f4.tar.gz tqt3-47f034c129653352ebf258000765f98f1910f2f4.zip |
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>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/qdns.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/qdns.cpp b/src/network/qdns.cpp index 9dcd73dab..d259cc0e4 100644 --- a/src/network/qdns.cpp +++ b/src/network/qdns.cpp @@ -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 |