From a40a5ffbbfc88be78fab58c800cf1943a2972a49 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Fri, 23 May 2003 21:26:06 +0000 Subject: [PATCH] * lib/Automake/DisjConditions.pm (human): Fix infinite loop when $self contains only one Condition. --- ChangeLog | 3 +++ lib/Automake/DisjConditions.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cf7b31528..c4a93a979 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-05-23 Alexandre Duret-Lutz + * 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. diff --git a/lib/Automake/DisjConditions.pm b/lib/Automake/DisjConditions.pm index e50ddf8c1..8654adee7 100644 --- a/lib/Automake/DisjConditions.pm +++ b/lib/Automake/DisjConditions.pm @@ -273,7 +273,7 @@ sub human ($ ) my @c = $self->conds; if (1 == @c) { - $res = $self->human; + $res = $c[0]->human; } else { -- 2.47.2