summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Fernengel <harald@trolltech.com>2009-06-16 14:09:34 (GMT)
committerHarald Fernengel <harald@trolltech.com>2009-06-16 14:09:34 (GMT)
commitebeb366169bccde25e7c795fa4d98db5d966ef55 (patch)
tree6ee46108a2f0d3c5a5e540e53fcc3544e13cedc2 /src
parent5612a8c81bc1b0bbaf1e35ef21099124f18eec7e (diff)
downloadQt-ebeb366169bccde25e7c795fa4d98db5d966ef55.zip
Qt-ebeb366169bccde25e7c795fa4d98db5d966ef55.tar.gz
Qt-ebeb366169bccde25e7c795fa4d98db5d966ef55.tar.bz2
compile without exception support
Diffstat (limited to 'src')
-rw-r--r--src/network/kernel/qhostinfo_unix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/kernel/qhostinfo_unix.cpp b/src/network/kernel/qhostinfo_unix.cpp
index f5d7166..bdbf986 100644
--- a/src/network/kernel/qhostinfo_unix.cpp
+++ b/src/network/kernel/qhostinfo_unix.cpp
@@ -320,8 +320,7 @@ QString QHostInfo::localDomainName()
if (local_res_ninit) {
// using thread-safe version
res_state_ptr state = res_state_ptr(qMalloc(sizeof(*state)));
- if (!state)
- qBadAlloc();
+ Q_CHECK_PTR(state);
memset(state, 0, sizeof(*state));
local_res_ninit(state);
QString domainName = QUrl::fromAce(state->defdname);