From 0e53eb203dbe67028eaf20739442475bd83c8bb1 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Wed, 12 Sep 2012 11:53:46 +0000 Subject: no need to test for a potential match before substituting --- perl-install/standalone.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm index 01d56b30e..8c8ee339c 100644 --- a/perl-install/standalone.pm +++ b/perl-install/standalone.pm @@ -203,7 +203,7 @@ sub bug_handler { # we want the full backtrace: if ($is_signal) { my $ctrace = c::C_backtrace(); - $ctrace =~ s/0:.*(\d+:[^:]*Perl_sighandler)/$1/sig if $ctrace =~ /0:.*(\d+:[^:]*Perl_sighandler)/sig; + $ctrace =~ s/0:.*(\d+:[^:]*Perl_sighandler)/$1/sig; $error .= "\nGlibc's trace:\n$ctrace\n"; } $error .= "Perl's trace:\n" . common::backtrace() if $error; -- cgit v1.2.1