aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRob N <[email protected]>2023-12-08 03:23:16 +1100
committerGitHub <[email protected]>2023-12-07 08:23:16 -0800
commitf0cb6482e1fe239c17f64cdb37f205e0e66ac4d4 (patch)
treeadc74a856bc91f68adec88835c9de90a1264965b /lib
parent4836d293c0508b58d5235cc35bf7211fc1082952 (diff)
setproctitle: fix ununitialised variable
Reported-by: Coverity (CID-1573333) Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ameer Hamza <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #15649
Diffstat (limited to 'lib')
-rw-r--r--lib/libzutil/os/linux/zutil_setproctitle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzutil/os/linux/zutil_setproctitle.c b/lib/libzutil/os/linux/zutil_setproctitle.c
index 5961527eb..e63acceb4 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);