mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-10 08:58:33 +01:00
Remove errno save/restore where not necessary.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
* Terminate program on failure. */
|
||||
#define DLSYM_FUNCTION(pointer, name) \
|
||||
if (NULL == (pointer)) { \
|
||||
int saved_errnox = errno; \
|
||||
char *error; \
|
||||
dlerror(); /* Clear possibly existing error. */ \
|
||||
\
|
||||
@@ -44,6 +45,7 @@
|
||||
* failed to load too. */ \
|
||||
abort(); \
|
||||
} \
|
||||
errno = saved_errnox; \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user