summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-01 01:59:50 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-04-01 04:07:30 +0200
commit029e89537c86da25c3328623fae94960fcfeb8a7 (patch)
tree93f63c07ede8570caeafbf0707b8b32915eb8cbf
parentd31d77b7199ecc9a7edc899d9703e9da52d5cbd1 (diff)
tdf#120703 PVS: Silence V575 warnings
V575 The potential null pointer is passed into 'strcpy' function. Change-Id: Iba2cbf1c94f1744b4e34c0f20d9dc030d52f5d9f Reviewed-on: https://gerrit.libreoffice.org/70024 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--solenv/bin/concat-deps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 2a81f89da97c..8f1ea492b9cd 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -1146,6 +1146,7 @@ int main(int argc, char** argv)
return 1;
work_dir_len = strlen(work_dir);
phony_content_buffer = malloc(PHONY_TARGET_BUFFER);
+ assert(phony_content_buffer); // Don't handle OOM conditions
strcpy(phony_content_buffer, work_dir);
phony_content_buffer[work_dir_len] = '/';