summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/ejs/smbscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbscript.c b/source4/scripting/ejs/smbscript.c
index 7e014716c2..dec9592c46 100644
--- a/source4/scripting/ejs/smbscript.c
+++ b/source4/scripting/ejs/smbscript.c
@@ -101,7 +101,7 @@ void ejs_exception(const char *reason)
}
return_var = ejsGetReturnValue(eid);
- exit_status = return_var->integer;
+ exit_status = mprVarToNumber(return_var);
ejsClose();