summaryrefslogtreecommitdiff
path: root/shell/source/win32
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-11 09:06:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-11 09:58:36 +0000
commit556373c41fddbac6cbee1c89e7707631270a1852 (patch)
tree026862690693419beb8810fdc6671ae30c72a026 /shell/source/win32
parent62b124b2704adf11a63681164d05a8eb49dfb105 (diff)
V668 no sense in testing the result of new against null
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
Diffstat (limited to 'shell/source/win32')
-rw-r--r--shell/source/win32/zipfile/zipfile.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx
index ca4381241231..ac9f9a0cec30 100644
--- a/shell/source/win32/zipfile/zipfile.cxx
+++ b/shell/source/win32/zipfile/zipfile.cxx
@@ -134,8 +134,6 @@ static std::string readString(StreamInterface *stream, unsigned long size)
if (!stream || stream->stell() == -1)
throw IOException(-1);
unsigned char *tmp = new unsigned char[size];
- if (!tmp)
- throw IOException(-1);
unsigned long numBytesRead = stream->sread(tmp, size);
if (numBytesRead != size)
throw IOException(-1);