From fba37f2abc84c6491ce81bef9e233dd9bfdabfaa Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Sat, 5 Aug 2017 09:14:35 +0000 Subject: tlmgr.pl: avoid use of uninitialized value git-svn-id: svn://tug.org/texlive/trunk@44958 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3