From fb2a3914e11a3ae9dbe656f0fc27e4a9ef47d480 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 5 Jan 2007 11:00:43 +0100 Subject: [PATCH] ole32: Remove redundant NULL check (Coverity). --- dlls/ole32/ole2.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 151957ccc40..5da68fc4477 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2562,15 +2562,7 @@ BSTR WINAPI PropSysAllocString(LPCOLESTR str) */ newBuffer++; - /* - * Copy the information in the buffer. - * Since it is valid to pass a NULL pointer here, we'll initialize the - * buffer to nul if it is the case. - */ - if (str != 0) - memcpy(newBuffer, str, bufferSize); - else - memset(newBuffer, 0, bufferSize); + memcpy(newBuffer, str, bufferSize); /* * Make sure that there is a nul character at the end of the