1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

r7078: - fix an uninitialised variable in smbscript

- fixed handle passing in the smb/ejs interface calls, so they can be called
  safely from esp
(This used to be commit 45ea1b6441)
This commit is contained in:
Andrew Tridgell
2005-05-29 12:41:59 +00:00
committed by Gerald (Jerry) Carter
parent fe17411203
commit 09e00bbdc1
2 changed files with 5 additions and 5 deletions

View File

@ -252,8 +252,8 @@ failed:
*/ */
void smb_setup_ejs_functions(void) void smb_setup_ejs_functions(void)
{ {
ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, 0); ejsDefineStringCFunction(-1, "lpGet", ejs_lpGet, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, 0); ejsDefineStringCFunction(-1, "lpServices", ejs_lpServices, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, 0); ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, 0); ejsDefineCFunction(-1, "ldbSearch", ejs_ldbSearch, NULL, MPR_VAR_SCRIPT_HANDLE);
} }

View File

@ -33,7 +33,7 @@ void ejs_exception(const char *reason)
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
EjsId eid; EjsId eid;
EjsHandle handle; EjsHandle handle = 0;
MprVar result; MprVar result;
char *emsg; char *emsg;
TALLOC_CTX *mem_ctx = talloc_new(NULL); TALLOC_CTX *mem_ctx = talloc_new(NULL);