[Pkg-mozext-commits] [greasemonkey] 07/24: Always initialize name.
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 1e477f9bc6fbbb2e2f6030007ec57904f3465b61
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Sat May 23 11:14:11 2015 -0400
Always initialize name.
---
modules/parseScript.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/parseScript.js b/modules/parseScript.js
index 906b27b..6595d41 100644
--- a/modules/parseScript.js
+++ b/modules/parseScript.js
@@ -22,9 +22,10 @@ function parse(aSource, aUri, aFailWhenMissing, aNoMetaOk) {
var script = new Script();
+ var name = null;
if (aUri) script.downloadURL = aUri.spec;
if (aUri && aUri.spec) {
- var name = aUri.spec;
+ name = aUri.spec;
name = name.substring(0, name.indexOf(".user.js"));
name = name.substring(name.lastIndexOf("/") + 1);
script._name = name;
--
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