You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
828 B

From 1df9c6543540b033edb37ead08f02b82b1ef71df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@fedoraproject.org>
Date: Mon, 11 Mar 2013 12:51:08 +0100
Subject: [PATCH] Remove 'defined' anachronism
---
lib/Locale/Po4a/Sgml.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Locale/Po4a/Sgml.pm b/lib/Locale/Po4a/Sgml.pm
index 3e9f2a6..a8165b9 100644
--- a/lib/Locale/Po4a/Sgml.pm
+++ b/lib/Locale/Po4a/Sgml.pm
@@ -366,7 +366,7 @@ sub parse_file {
# - protect entities from expansion (ie "&release;")
my $origfile="";
my $i=0;
- while (defined(@{$self->{TT}{doc_in}}) && $i < @{$self->{TT}{doc_in}}) {
+ while (@{$self->{TT}{doc_in}} && $i < @{$self->{TT}{doc_in}}) {
$origfile .= ${$self->{TT}{doc_in}}[$i];
$i+=2;
}
--
1.8.1.4