Tweaks to keep the Microsoft compiler quier.

This commit is contained in:
Guido van Rossum 1997-04-09 19:24:53 +00:00
parent 8017767420
commit 644a12b00c
8 changed files with 36 additions and 19 deletions

View file

@ -503,13 +503,16 @@ load_dynamic_module(name, pathname, fp)
perror(funcname);
}
#endif /* hpux */
#ifdef USE_SHLIB
got_it:
#endif
if (p == NULL) {
err_setstr(ImportError,
"dynamic module does not define init function");
return NULL;
}
(*p)();
/* XXX Need check for err_occurred() here */
m = dictlookup(import_modules, name);
if (m == NULL) {