openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/modules.c
static void modUsrAdd(modInfo_t* pThis, const char* pszUsr)
{
    modUsr_t* pUsr;

    if ((pUsr = calloc(1, sizeof(modUsr_t))) == NULL)
        goto finalize_it;

    if ((pUsr->pszFile = strdup(pszUsr)) == NULL)
    {
        free(pUsr);
        goto finalize_it;
    }

    if (pThis->pModUsrRoot != NULL)
    {
        pUsr->pNext = pThis->pModUsrRoot;
    }
    pThis->pModUsrRoot = pUsr;

finalize_it:
    return;
}
/* add a user to the current list of users (always at the root) */
add a user to the current list of users (always at the root)
add a user to the current list of users ( always at the root )
static void modUsrAdd(modInfo_t* pThis, const char* pszUsr)
{
    modUsr_t* pUsr;
    if ((pUsr = calloc(1, sizeof(modUsr_t))) == NULL)
        goto finalize_it;
    if ((pUsr->pszFile = strdup(pszUsr)) == NULL)
    {
        free(pUsr);
        goto finalize_it;
    }
    if (pThis->pModUsrRoot != NULL)
    {
        pUsr->pNext = pThis->pModUsrRoot;
    }
    pThis->pModUsrRoot = pUsr;
finalize_it:
    return;
}
static void modUsrAdd ( modInfo_t * pThis , const char * pszUsr ) { modUsr_t * pUsr ; if ( ( pUsr = calloc ( 1 , sizeof ( modUsr_t ) ) ) == NULL ) goto finalize_it ; if ( ( pUsr -> pszFile = strdup ( pszUsr ) ) == NULL ) { free ( pUsr ) ; goto finalize_it ; } if ( pThis -> pModUsrRoot != NULL ) { pUsr -> pNext = pThis -> pModUsrRoot ; } pThis -> pModUsrRoot = pUsr ; finalize_it : return ; }
add a user to the current list of users (always at the root)
add a user to the current list of users ( always at the root )