[svk-commit] r2461 - branches/i18n-fixes/lib/SVK/Editor

nobody at bestpractical.com nobody at bestpractical.com
Mon Jul 16 11:32:53 EDT 2007


Author: clsung
Date: Mon Jul 16 11:32:53 2007
New Revision: 2461

Modified:
   branches/i18n-fixes/lib/SVK/Editor/Composite.pm

Log:
- fix warning when $self->{anchor_baton} is undef
log:
t/07smerge-dir-replaced..........Use of uninitialized value in string eq at lib/SVK/Editor/Composite.pm line 86.

Modified: branches/i18n-fixes/lib/SVK/Editor/Composite.pm
==============================================================================
--- branches/i18n-fixes/lib/SVK/Editor/Composite.pm	(original)
+++ branches/i18n-fixes/lib/SVK/Editor/Composite.pm	Mon Jul 16 11:32:53 2007
@@ -83,7 +83,8 @@
     }
     elsif ($func =~ m/^close_(?:file|directory)/) {
 	if (defined $arg[0]) {
-	    return if $arg[0] eq $self->{anchor_baton};
+	    return if defined $self->{anchor_baton} &&
+		$arg[0] eq $self->{anchor_baton};
 	    return if defined $self->{target_baton} &&
 		$arg[0] eq $self->{target_baton};
 	}


More information about the svk-commit mailing list