Fixed two uninitialized-data bugs.

This commit is contained in:
Ben Gras 2005-07-18 13:44:39 +00:00
parent 1f756d377a
commit 3eb405c3bf
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ char *argv[];
first_print= 1; first_print= 1;
prog_name= argv[0]; 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; E_arg= I_arg= NULL;
while((c= getopt(argc, argv, "?aheE:iI:")) != -1) while((c= getopt(argc, argv, "?aheE:iI:")) != -1)

View file

@ -209,8 +209,8 @@ void copylink(char *source, char *dest, int mode, int owner, int group)
int r, same= 0, change= 0, docopy= 1; int r, same= 0, change= 0, docopy= 1;
char buf[4096]; char buf[4096];
# define hdr ((struct exec *) buf) # define hdr ((struct exec *) buf)
pid_t pid; pid_t pid = 0;
int status; int status = 0;
/* Source must exist as a plain file, dest may exist as a plain file. */ /* Source must exist as a plain file, dest may exist as a plain file. */