view src/os/unix/ngx_dlopen.c @ 8064:5f5a34e83ca2

Events: fixed style and wrong error handling in the iocp module.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 07 Sep 2022 00:43:51 +0300
parents 7142b04337d6
children
line wrap: on
line source


/*
 * Copyright (C) Maxim Dounin
 * Copyright (C) Nginx, Inc.
 */


#include <ngx_config.h>
#include <ngx_core.h>


#if (NGX_HAVE_DLOPEN)

char *
ngx_dlerror(void)
{
    char  *err;

    err = (char *) dlerror();

    if (err == NULL) {
        return "";
    }

    return err;
}

#endif