From f0cb6482e1fe239c17f64cdb37f205e0e66ac4d4 Mon Sep 17 00:00:00 2001 From: Rob N Date: Fri, 8 Dec 2023 03:23:16 +1100 Subject: [PATCH] setproctitle: fix ununitialised variable Reported-by: Coverity (CID-1573333) Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Reviewed-by: Ameer Hamza Signed-off-by: Rob Norris Closes #15649 --- lib/libzutil/os/linux/zutil_setproctitle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzutil/os/linux/zutil_setproctitle.c b/lib/libzutil/os/linux/zutil_setproctitle.c index 5961527ebc..e63acceb4f 100644 --- a/lib/libzutil/os/linux/zutil_setproctitle.c +++ b/lib/libzutil/os/linux/zutil_setproctitle.c @@ -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);