summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/ejs/smbcalls.c8
-rw-r--r--source4/scripting/ejs/smbscript.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c
index 664bb74df3..e436fc78df 100644
--- a/source4/scripting/ejs/smbcalls.c
+++ b/source4/scripting/ejs/smbcalls.c
@@ -252,8 +252,8 @@ failed:
*/
void smb_setup_ejs_functions(void)
{
- ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, 0);
- ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, 0);
- ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, 0);
- ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, 0);
+ ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, MPR_VAR_SCRIPT_HANDLE);
+ ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, MPR_VAR_SCRIPT_HANDLE);
+ ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE);
+ ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, MPR_VAR_SCRIPT_HANDLE);
}
diff --git a/source4/scripting/ejs/smbscript.c b/source4/scripting/ejs/smbscript.c
index 3378885147..021dafa4ae 100644
--- a/source4/scripting/ejs/smbscript.c
+++ b/source4/scripting/ejs/smbscript.c
@@ -33,7 +33,7 @@ void ejs_exception(const char *reason)
int main(int argc, const char *argv[])
{
EjsId eid;
- EjsHandle handle;
+ EjsHandle handle = 0;
MprVar result;
char *emsg;
TALLOC_CTX *mem_ctx = talloc_new(NULL);