svn commit: samba r7078 - in
branches/SAMBA_4_0/source/scripting/ejs: .
tridge at samba.org
tridge at samba.org
Sun May 29 12:41:59 GMT 2005
Author: tridge
Date: 2005-05-29 12:41:59 +0000 (Sun, 29 May 2005)
New Revision: 7078
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7078
Log:
- fix an uninitialised variable in smbscript
- fixed handle passing in the smb/ejs interface calls, so they can be called
safely from esp
Modified:
branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c
branches/SAMBA_4_0/source/scripting/ejs/smbscript.c
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c 2005-05-29 12:10:13 UTC (rev 7077)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c 2005-05-29 12:41:59 UTC (rev 7078)
@@ -252,8 +252,8 @@
*/
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);
}
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbscript.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbscript.c 2005-05-29 12:10:13 UTC (rev 7077)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbscript.c 2005-05-29 12:41:59 UTC (rev 7078)
@@ -33,7 +33,7 @@
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);
More information about the samba-cvs
mailing list