warning C6011: Dereferencing NULL pointer 'sNewPath'
C:\lo\build\instdir\sdk\include\LibreOfficeKit\LibreOfficeKitInit.h(161) : warning C6011: Dereferencing NULL pointer 'sNewPath'. : Lines: 136, 137, 138, 140, 143, 144, 157, 159, 160, 161 Change-Id: I0fba0db79b4a36f293e867da262a970eb152e3d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169651 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
589bce3776
commit
a337a6ed16
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ extern "C"
|
|||
size_sEnvPath = strlen(sEnvPath);
|
||||
buffer_size = size_sEnvPath + 2*strlen(pPath) + strlen(UNOPATH) + 4;
|
||||
sNewPath = (char *) malloc(buffer_size);
|
||||
assert(sNewPath);
|
||||
sNewPath[0] = L'\0';
|
||||
strcat_s(sNewPath, buffer_size, pPath); // program to PATH
|
||||
strcat_s(sNewPath, buffer_size, ";");
|
||||
|
|
Loading…
Reference in a new issue