diff options
author | Denis Kozadaev <denis@dilos.org> | 2023-06-14 17:10:42 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-06-15 16:28:54 +0900 |
commit | eb4fc5004baddcd8454be91367194149ef87e90f (patch) | |
tree | 4f65dd91736654bdf6e9d5e6169e185461fa39c9 | |
parent | 984ea06ed6ce702d98fcfe08dc353d58f3f0bcbc (diff) | |
download | tqt3-eb4fc5004baddcd8454be91367194149ef87e90f.tar.gz tqt3-eb4fc5004baddcd8454be91367194149ef87e90f.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>
(cherry picked from commit 47f034c129653352ebf258000765f98f1910f2f4)
-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 |