Fixed two uninitialized-data bugs.
This commit is contained in:
parent
1f756d377a
commit
3eb405c3bf
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue