* lib/Automake/DisjConditions.pm (human): Fix infinite loop when
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 23 May 2003 21:26:06 +0000 (21:26 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 23 May 2003 21:26:06 +0000 (21:26 +0000)
$self contains only one Condition.

ChangeLog
lib/Automake/DisjConditions.pm

index cf7b315..c4a93a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
+       $self contains only one Condition.
+
        * automake.in: Use plain strict, including refs.
        (macro_define, handle_single_transform_list): Use \&{'name'} to
        build references to named subroutines.
index e50ddf8..8654ade 100644 (file)
@@ -273,7 +273,7 @@ sub human ($ )
       my @c = $self->conds;
       if (1 == @c)
        {
-         $res = $self->human;
+         $res = $c[0]->human;
        }
       else
        {