texlive[58557] Master/tlpkg/TeXLive/trans.pl: Add test
commits+siepo at tug.org
commits+siepo at tug.org
Sat Mar 20 23:01:24 CET 2021
Revision: 58557
http://tug.org/svn/texlive?view=revision&revision=58557
Author: siepo
Date: 2021-03-20 23:01:24 +0100 (Sat, 20 Mar 2021)
Log Message:
-----------
Add test defined($::lang) test to prevent uninitialized value warning
Modified Paths:
--------------
trunk/Master/tlpkg/TeXLive/trans.pl
Modified: trunk/Master/tlpkg/TeXLive/trans.pl
===================================================================
--- trunk/Master/tlpkg/TeXLive/trans.pl 2021-03-20 21:16:44 UTC (rev 58556)
+++ trunk/Master/tlpkg/TeXLive/trans.pl 2021-03-20 22:01:24 UTC (rev 58557)
@@ -105,7 +105,7 @@
}
sub load_translations() {
- if (($::lang ne "en") && ($::lang ne "C")) {
+ if (defined($::lang) && ($::lang ne "en") && ($::lang ne "C")) {
my $code = $::lang;
my @files_to_check;
if (defined($::area)) {
More information about the tex-live-commits
mailing list.