summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/winreg14
1 files changed, 6 insertions, 8 deletions
diff --git a/source4/scripting/bin/winreg b/source4/scripting/bin/winreg
index d869d356fd..7656c8a441 100755
--- a/source4/scripting/bin/winreg
+++ b/source4/scripting/bin/winreg
@@ -9,14 +9,12 @@ exec smbscript "$0" ${1+"$@"}
libinclude("base.js");
libinclude("winreg.js");
-var options = new Object();
-
-ok = GetOptions(ARGV, options,
- "POPT_AUTOHELP",
- "POPT_COMMON_SAMBA",
- "POPT_COMMON_CREDENTIALS");
-if (ok == false) {
- println("Failed to parse options: " + options.ERROR);
+var options = GetOptions(ARGV,
+ "POPT_AUTOHELP",
+ "POPT_COMMON_SAMBA",
+ "POPT_COMMON_CREDENTIALS");
+if (options == undefined) {
+ println("Failed to parse options");
return -1;
}