X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/2fa25efce2a183e8886d66e2f1a0ae83ac964d8e..b1c673ddfac7f322a62786cd4aae8b5b30ba69e8:/src/src/exim.c diff --git a/src/src/exim.c b/src/src/exim.c index af4b52559..92f5623d2 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -1265,9 +1265,9 @@ void *dlhandle; void *dlhandle_curses = dlopen("libcurses." DYNLIB_FN_EXT, RTLD_GLOBAL|RTLD_LAZY); dlhandle = dlopen("libreadline." DYNLIB_FN_EXT, RTLD_GLOBAL|RTLD_NOW); -if (dlhandle_curses != NULL) dlclose(dlhandle_curses); +if (dlhandle_curses) dlclose(dlhandle_curses); -if (dlhandle != NULL) +if (dlhandle) { /* Checked manual pages; at least in GNU Readline 6.1, the prototypes are: * char * readline (const char *prompt); @@ -1277,9 +1277,7 @@ if (dlhandle != NULL) *fn_addhist_ptr = (void(*)(const char*))dlsym(dlhandle, "add_history"); } else - { DEBUG(D_any) debug_printf("failed to load readline: %s\n", dlerror()); - } return dlhandle; }