From: Ben Gras Date: Mon, 18 Jul 2005 13:44:39 +0000 (+0000) Subject: Fixed two uninitialized-data bugs. X-Git-Tag: v3.1.0~603 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=3eb405c3bfc2017142f2d85022265a482fbe8796;p=minix.git Fixed two uninitialized-data bugs. --- 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. */