[Pkg-mozext-commits] [greasemonkey] 06/24: Alwyas initialize langMatch.
David Prévot
taffit at moszumanska.debian.org
Sat May 30 13:32:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit e1a4c0923d4d726c927663ac9fc543b676372b89
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Sat May 23 11:09:09 2015 -0400
Alwyas initialize langMatch.
---
modules/util/getBestLocaleMatch.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/util/getBestLocaleMatch.js b/modules/util/getBestLocaleMatch.js
index d0d8e75..c94f2bd 100644
--- a/modules/util/getBestLocaleMatch.js
+++ b/modules/util/getBestLocaleMatch.js
@@ -13,7 +13,8 @@ const EXPORTED_SYMBOLS = ['getBestLocaleMatch'];
function getBestLocaleMatch(aPreferred, aAvailable) {
var preferredLang = aPreferred.split("-")[0];
- var langMatch, partialMatch = null;
+ var langMatch = null;
+ var partialMatch = null;
for (var i = 0, current; current = aAvailable[i]; i++) {
// Both lang and country match
if (current == aPreferred)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list