Mark that the binding has been initialized.
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Tue, 9 Jun 2009 20:53:36 +0000 (9 16:53 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Tue, 9 Jun 2009 20:53:36 +0000 (9 16:53 -0400)
src/script.c

index 4759c27..6804f69 100644 (file)
@@ -91,7 +91,10 @@ ScriptSource(int argc, const char **argv)
       if (!bd_select || strcmp(bd_select, binding->name) == 0) {
           /*dynamically initialize the binding*/
           if (!binding->inited)
-            binding->bd_Init();
+           {
+             binding->bd_Init();
+             binding->inited = 1;
+           }
 
           /*and source the script*/
           if (ret = binding->bd_Source(script, async))