texlive[44958] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr.pl:

commits+hironobu at tug.org commits+hironobu at tug.org
Sat Aug 5 11:14:35 CEST 2017


Revision: 44958
          http://tug.org/svn/texlive?view=revision&revision=44958
Author:   hironobu
Date:     2017-08-05 11:14:35 +0200 (Sat, 05 Aug 2017)
Log Message:
-----------
tlmgr.pl: avoid use of uninitialized value 

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl

Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2017-08-05 00:21:29 UTC (rev 44957)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2017-08-05 09:14:35 UTC (rev 44958)
@@ -4546,6 +4546,10 @@
     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



More information about the tex-live-commits mailing list