Kaydet (Commit) 89035356 authored tarafından Miklos Vajna's avatar Miklos Vajna

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

Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57
üst 2c737ced
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment