When dlopen and friends fail, the cblock got inserted in the library list (A Gavrilov)

This commit is contained in:
Juan Jose Garcia Ripoll 2010-10-03 23:22:31 +02:00
parent 91e61db455
commit c96650531c

View file

@ -259,7 +259,14 @@ ecl_library_open(cl_object filename, bool force_reload) {
block = other;
} else {
si_set_finalizer(block, Ct);
#if 0
if (block->cblock.handle != NULL)
cl_core.libraries = CONS(block, cl_core.libraries);
else
ecl_library_close(block);
#else
cl_core.libraries = CONS(block, cl_core.libraries);
#endif
}
}
return block;