From 3eb405c3bfc2017142f2d85022265a482fbe8796 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 18 Jul 2005 13:44:39 +0000 Subject: [PATCH] Fixed two uninitialized-data bugs. --- commands/simple/hostaddr.c | 2 +- commands/simple/install.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/simple/hostaddr.c b/commands/simple/hostaddr.c index 7f02b4f2f..b0a0eb629 100755 --- a/commands/simple/hostaddr.c +++ b/commands/simple/hostaddr.c @@ -59,7 +59,7 @@ char *argv[]; first_print= 1; prog_name= argv[0]; - a_flag= e_flag= i_flag= 0; + a_flag= e_flag= h_flag = i_flag= 0; E_arg= I_arg= NULL; while((c= getopt(argc, argv, "?aheE:iI:")) != -1) diff --git a/commands/simple/install.c b/commands/simple/install.c index 894791659..b167195e2 100755 --- a/commands/simple/install.c +++ b/commands/simple/install.c @@ -209,8 +209,8 @@ void copylink(char *source, char *dest, int mode, int owner, int group) int r, same= 0, change= 0, docopy= 1; char buf[4096]; # define hdr ((struct exec *) buf) - pid_t pid; - int status; + pid_t pid = 0; + int status = 0; /* Source must exist as a plain file, dest may exist as a plain file. */