summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2017-08-05 09:14:35 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2017-08-05 09:14:35 +0000
commitfba37f2abc84c6491ce81bef9e233dd9bfdabfaa (patch)
treea0a142e9cae1d081ae4712b5f0c052510f07545a /Master
parent031143c1053056bdc8be7e375f1d38022eb8196e (diff)
tlmgr.pl: avoid use of uninitialized value
git-svn-id: svn://tug.org/texlive/trunk@44958 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl4
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