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/parser.c
static rsRetVal SetName(parser_t* pThis, uchar* name)
{
    DEFiRet;

    ISOBJ_TYPE_assert(pThis, parser);
    assert(name != NULL);

    if (pThis->pName != NULL)
    {
        free(pThis->pName);
        pThis->pName = NULL;
    }

    CHKmalloc(pThis->pName = ustrdup(name));

finalize_it:
    RETiRet;
}
/* set the parser name - string is copied over, call can continue to use it,
 * but must free it if desired.
 */
set the parser name - string is copied over, call can continue to use it,
but must free it if desired.
set the parser name - string is copied over call can continue to use it but must free it if desired .
static rsRetVal SetName(parser_t* pThis, uchar* name)
{
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, parser);
    assert(name != NULL);
    if (pThis->pName != NULL)
    {
        free(pThis->pName);
        pThis->pName = NULL;
    }
    CHKmalloc(pThis->pName = ustrdup(name));
finalize_it:
    RETiRet;
}
static rsRetVal SetName ( parser_t * pThis , uchar * name ) { DEFiRet ; ISOBJ_TYPE_assert ( pThis , parser ) ; assert ( name != NULL ) ; if ( pThis -> pName != NULL ) { free ( pThis -> pName ) ; pThis -> pName = NULL ; } CHKmalloc ( pThis -> pName = ustrdup ( name ) ) ; finalize_it : RETiRet ; }
set the parser name - string is copied over, call can continue to use it,
 but must free it if desired.
set the parser name - string is copied over call can continue to use it but must free it if desired .