diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2017-08-05 09:14:35 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2017-08-05 09:14:35 +0000 |
commit | fba37f2abc84c6491ce81bef9e233dd9bfdabfaa (patch) | |
tree | a0a142e9cae1d081ae4712b5f0c052510f07545a | |
parent | 031143c1053056bdc8be7e375f1d38022eb8196e (diff) |
tlmgr.pl: avoid use of uninitialized value
git-svn-id: svn://tug.org/texlive/trunk@44958 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 8c0a171bf29..0cbbacb2634 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -4546,6 +4546,10 @@ sub action_generate { return $F_ERROR; } my $what = shift @ARGV; + if (!defined($what)) { + tlwarn("$prg: action `generate' requires an argument!\n"); + return ($F_ERROR); + } init_local_db(); # we create fmtutil.cnf, language.dat, language.def in TEXMFSYSVAR and |