Skip to contentSkip to conversation

Avoid generating a warning if $fullname{$file} is undefined

PATCH New Nick Woolley 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Avoid generating a warning if $fullname{$file} is undefined

---
 git-cvsexportcommit.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
git-cvsexportcommit.perl +2 -1
index d509468..59b6722 100755
@@ -259,7 +259,8 @@ if (@canstatusfiles) {
 	    if $file =~ /^no file /
 		&& $status eq 'Up-to-date';
 
-	$cvsstat{$fullname{$file}} = $status;
+	$cvsstat{$fullname{$file}} = $status
+	    if defined $fullname{$file};
       }
     }
 }
Signature · 1 line
1.6.3.3