r26576: Allow the static module loading code to be used for the Python modules.
[metze/old/samba4-sync/samba4-sync.git/.git] / source / scripting / ejs / smbcalls.c
index 8a3ce245d2ad1f36208f92864554593696341955..da13f1f6ef60d208d928f3adf22f50a95f432879 100644 (file)
@@ -173,7 +173,7 @@ _PUBLIC_ void ejs_exception(const char *reason)
 */
 void smb_setup_ejs_functions(void (*exception_handler)(const char *))
 {
-       init_module_fn static_init[] = STATIC_smbcalls_MODULES;
+       init_module_fn static_init[] = { STATIC_smbcalls_MODULES, NULL };
        init_module_fn *shared_init;
 
        ejs_exception_handler = exception_handler;