fix shared object stuff (obs from Roberto Bagnara).
This commit is contained in:
parent
80b2253de1
commit
a2286354c8
|
@ -261,7 +261,8 @@ Yap_ReOpenLoadForeign(void)
|
||||||
while (f_code != NULL) {
|
while (f_code != NULL) {
|
||||||
CurrentModule = f_code->module;
|
CurrentModule = f_code->module;
|
||||||
if(Yap_ReLoadForeign(f_code->objs,f_code->libs,f_code->f,&InitProc)==LOAD_SUCCEEDED) {
|
if(Yap_ReLoadForeign(f_code->objs,f_code->libs,f_code->f,&InitProc)==LOAD_SUCCEEDED) {
|
||||||
(*InitProc)();
|
if (InitProc)
|
||||||
|
(*InitProc)();
|
||||||
}
|
}
|
||||||
f_code = f_code->next;
|
f_code = f_code->next;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue