pyuno_dlopenwrapper: give error message before abort() if dlopen() fails

Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57
This commit is contained in:
Miklos Vajna 2013-04-12 09:45:00 +02:00
parent 2c737cedd9
commit 89035356bc

View file

@ -64,6 +64,7 @@ static void * load(void * address, char const * symbol) {
h = dlopen(libname, RTLD_NOW | RTLD_GLOBAL);
free(libname);
if (h == NULL) {
fprintf(stderr, "failed to load pyuno: '%s'\n", dlerror());
abort();
}
func = dlsym(h, symbol);