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/netstrms.c
static rsRetVal SetDrvrName(netstrms_t* pThis, uchar* pszName)
{
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, netstrms);
    if (pThis->pBaseDrvrName != NULL)
    {
        free(pThis->pBaseDrvrName);
        pThis->pBaseDrvrName = NULL;
    }

    if (pszName != NULL)
    {
        CHKmalloc(pThis->pBaseDrvrName = (uchar*)strdup((char*)pszName));
    }
finalize_it:
    RETiRet;
}
/* set the base driver name. If the driver name
 * is set to NULL, the previously set name is deleted but
 * no name set again (which results in the system default being
 * used)-- rgerhards, 2008-05-05
 */
set the base driver name. If the driver name
is set to NULL, the previously set name is deleted but
no name set again (which results in the system default being
used)-- rgerhards, 2008-05-05
set the base driver name . If the driver name is set to NULL the previously set name is deleted but no name set again ( which results in the system default being used ) -- rgerhards 2008 - 05 - 05
static rsRetVal SetDrvrName(netstrms_t* pThis, uchar* pszName)
{
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, netstrms);
    if (pThis->pBaseDrvrName != NULL)
    {
        free(pThis->pBaseDrvrName);
        pThis->pBaseDrvrName = NULL;
    }
    if (pszName != NULL)
    {
        CHKmalloc(pThis->pBaseDrvrName = (uchar*)strdup((char*)pszName));
    }
finalize_it:
    RETiRet;
}
static rsRetVal SetDrvrName ( netstrms_t * pThis , uchar * pszName ) { DEFiRet ; ISOBJ_TYPE_assert ( pThis , netstrms ) ; if ( pThis -> pBaseDrvrName != NULL ) { free ( pThis -> pBaseDrvrName ) ; pThis -> pBaseDrvrName = NULL ; } if ( pszName != NULL ) { CHKmalloc ( pThis -> pBaseDrvrName = ( uchar * ) strdup ( ( char * ) pszName ) ) ; } finalize_it : RETiRet ; }
set the base driver name.
set the base driver name .