setproctitle: fix ununitialised variable

Reported-by: Coverity (CID-1573333)

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15649
This commit is contained in:
Rob N 2023-12-08 03:23:16 +11:00 committed by GitHub
parent 4836d293c0
commit f0cb6482e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ spt_copyenv(int envc, char *envp[])
char **envcopy;
char *eq;
int envsize;
int i, error;
int i, error = 0;
if (environ != envp)
return (0);