Commit 0681899b authored by Vincent Pelletier's avatar Vincent Pelletier

Reduce inlining a bit for readability.

parent 258ee9b7
......@@ -39,7 +39,8 @@ static inline void *dlsym_or_abort(const char *name) {
char *error;
void *symbol;
dlerror(); /* Clear any previous error */
if (NULL == (symbol = dlsym(RTLD_NEXT, name)) && (error = dlerror())) {
symbol = dlsym(RTLD_NEXT, name);
if (NULL == symbol && (error = dlerror())) {
fprintf(stderr, "Error loading '%s': %s\n", name, error);
abort();
}
......
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