Ignore:
Timestamp:
Oct 8, 2013 11:14:42 AM (10 years ago)
Author:
bennylp
Message:

Re #1703 General bug fixes: fixed some wrong null checking order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r4537 r4615  
    578578PJ_DEF(char*) pjsip_tx_data_get_info( pjsip_tx_data *tdata ) 
    579579{ 
     580    PJ_ASSERT_RETURN(tdata, "NULL"); 
     581 
    580582    /* tdata->info may be assigned by application so if it exists 
    581583     * just return it. 
     
    584586        return tdata->info; 
    585587 
    586     if (tdata==NULL || tdata->msg==NULL) 
     588    if (tdata->msg==NULL) 
    587589        return "NULL"; 
    588590 
Note: See TracChangeset for help on using the changeset viewer.