summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-06-29 13:38:12 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-06-29 14:15:05 (GMT)
commit61d8f281d5f6e339ad497c1f06e4e4e2f306fe43 (patch)
tree59dce304e97ecbf68c24db686ef00202b6da000a /src/network/access/qnetworkreplyimpl.cpp
parent150f29a4b3144a59bf49394bbb0eea53eb8a72f6 (diff)
downloadQt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.zip
Qt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.tar.gz
Qt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.tar.bz2
QNetworkAccessManager stuff: Some fixes for coverity
A few "fixes" to make that number go down.. Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index d903d03..63a9c2d 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -52,10 +52,12 @@
QT_BEGIN_NAMESPACE
inline QNetworkReplyImplPrivate::QNetworkReplyImplPrivate()
- : copyDevice(0), networkCache(0),
+ : backend(0), outgoingData(0),
+ copyDevice(0), networkCache(0),
cacheEnabled(false), cacheSaveDevice(0),
notificationHandlingPaused(false),
bytesDownloaded(0), lastBytesDownloaded(-1), bytesUploaded(-1),
+ httpStatusCode(0),
state(Idle)
{
}
@@ -129,7 +131,7 @@ void QNetworkReplyImplPrivate::_q_sourceReadChannelFinished()
void QNetworkReplyImplPrivate::_q_copyReadyRead()
{
Q_Q(QNetworkReplyImpl);
- if (!copyDevice && !q->isOpen())
+ if (!copyDevice || !q->isOpen())
return;
forever {