Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2018 18:05:21 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329646 - head/stand/lua
Message-ID:  <201802201805.w1KI5LS9074495@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Tue Feb 20 18:05:21 2018
New Revision: 329646
URL: https://svnweb.freebsd.org/changeset/base/329646

Log:
  lualoader: Eliminate global namespace pollution in loader.lua

Modified:
  head/stand/lua/loader.lua

Modified: head/stand/lua/loader.lua
==============================================================================
--- head/stand/lua/loader.lua	Tue Feb 20 18:04:08 2018	(r329645)
+++ head/stand/lua/loader.lua	Tue Feb 20 18:05:21 2018	(r329646)
@@ -27,9 +27,9 @@
 -- $FreeBSD$
 --
 
-config = require("config");
-menu = require("menu");
-password = require("password");
+local config = require("config");
+local menu = require("menu");
+local password = require("password");
 
 -- Declares a global function cli_execute that attempts to dispatch the
 -- arguments passed as a lua function. This gives lua a chance to intercept



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802201805.w1KI5LS9074495>