Merge pull request #2666 from keszybz/coverity-fixes

Coverity fixes
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-02-19 15:18:40 -05:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ void rename_process(const char name[8]) {
* "systemd"). If you pass a longer string it will be
* truncated */
prctl(PR_SET_NAME, name);
(void) prctl(PR_SET_NAME, name);
if (program_invocation_name)
strncpy(program_invocation_name, name, strlen(program_invocation_name));