Kaydet (Commit) 029e8953 authored tarafından Mike Kaganski's avatar Mike Kaganski

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: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst d31d77b7
......@@ -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] = '/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment