diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2021-03-20 22:01:24 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2021-03-20 22:01:24 +0000 |
commit | fb0c103c4317f5b4ccfcd84dba5482fd8dc9dec6 (patch) | |
tree | de0542d97f67f11b17fda578a3e4224802e8e4c4 /Master/tlpkg/TeXLive | |
parent | 595da54540ab9cac647d5edf79c006876cf5f4c3 (diff) |
Add test defined($::lang) test to prevent uninitialized value warning
git-svn-id: svn://tug.org/texlive/trunk@58557 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/trans.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/trans.pl b/Master/tlpkg/TeXLive/trans.pl index b21096283e4..607690ea8f8 100644 --- a/Master/tlpkg/TeXLive/trans.pl +++ b/Master/tlpkg/TeXLive/trans.pl @@ -105,7 +105,7 @@ sub __ ($@) { } 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)) { |