do not reexecute function on restore if f_name is NULL.

This commit is contained in:
Vitor Santos Costa 2010-11-22 21:47:17 +00:00
parent 576d37510c
commit f9cd010242

View File

@ -133,7 +133,7 @@ LoadForeign(StringList ofiles, StringList libs,
ofiles->handle = handle;
if (!*init_proc)
if (proc_name && !*init_proc)
*init_proc = (YapInitProc) dlsym(handle,proc_name);
ofiles = ofiles->next;