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/prop.c
static rsRetVal CreateStringProp(prop_t** ppThis, const uchar* psz,
                                 const int len)
{
    prop_t* pThis = NULL;
    DEFiRet;

    CHKiRet(propConstruct(&pThis));
    CHKiRet(SetString(pThis, psz, len));
    CHKiRet(propConstructFinalize(pThis));
    *ppThis = pThis;
finalize_it:
    if (iRet != RS_RET_OK)
    {
        if (pThis != NULL)
            propDestruct(&pThis);
    }

    RETiRet;
}
/* this is a "do it all in one shot" function that creates a new property,
 * assigns the provided string to it and finalizes the property. Among the
 * convenience, it is also (very, very) slightly faster.
 * rgerhards, 2009-07-01
 */
this is a "do it all in one shot" function that creates a new property,
assigns the provided string to it and finalizes the property. Among the
convenience, it is also (very, very) slightly faster.
this is a " do it all in one shot " function that creates a new property assigns the provided string to it and finalizes the property . Among the convenience it is also ( very very ) slightly faster .
static rsRetVal CreateStringProp(prop_t** ppThis, const uchar* psz,
                                 const int len)
{
    prop_t* pThis = NULL;
    DEFiRet;
    CHKiRet(propConstruct(&pThis));
    CHKiRet(SetString(pThis, psz, len));
    CHKiRet(propConstructFinalize(pThis));
    *ppThis = pThis;
finalize_it:
    if (iRet != RS_RET_OK)
    {
        if (pThis != NULL)
            propDestruct(&pThis);
    }
    RETiRet;
}
static rsRetVal CreateStringProp ( prop_t * * ppThis , const uchar * psz , const int len ) { prop_t * pThis = NULL ; DEFiRet ; CHKiRet ( propConstruct ( & pThis ) ) ; CHKiRet ( SetString ( pThis , psz , len ) ) ; CHKiRet ( propConstructFinalize ( pThis ) ) ; * ppThis = pThis ; finalize_it : if ( iRet != RS_RET_OK ) { if ( pThis != NULL ) propDestruct ( & pThis ) ; } RETiRet ; }
this is a "do it all in one shot" function that creates a new property,
 assigns the provided string to it and finalizes the property.
this is a " do it all in one shot " function that creates a new property assigns the provided string to it and finalizes the property .