initialize rc var in Table.pm and tabutils.pm to remove warnings when running xcatd in foreground
This commit is contained in:
		@@ -3837,7 +3837,7 @@ sub writeAllEntries
 | 
			
		||||
    }
 | 
			
		||||
    my $filename = shift;
 | 
			
		||||
    my $fh;
 | 
			
		||||
    my $rc;
 | 
			
		||||
    my $rc = 0;
 | 
			
		||||
    # open the file for write
 | 
			
		||||
    unless (open($fh," > $filename")) {
 | 
			
		||||
     my $msg="Unable to open $filename for write \n.";
 | 
			
		||||
 
 | 
			
		||||
@@ -740,7 +740,7 @@ sub tabdump
 | 
			
		||||
      output_table($table,$cb,$tabh,$recs); 
 | 
			
		||||
    } else { # dump to file
 | 
			
		||||
      
 | 
			
		||||
      my $rc1;
 | 
			
		||||
      my $rc1 = 0;
 | 
			
		||||
      my $fh;
 | 
			
		||||
      # check to see if you can open the file
 | 
			
		||||
      unless (open($fh," > $FILENAME")) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user