Ignore:
Timestamp:
Oct 25, 2007 3:19:58 AM (17 years ago)
Author:
bennylp
Message:

Added assertion which checks if evsub module has been registered before other calls pjsip_evsub_register_pkg() (thanks Alexander Agranovsky)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r1417 r1522  
    405405    PJ_ASSERT_RETURN(accept_cnt < PJ_ARRAY_SIZE(pkg->pkg_accept->values),  
    406406                     PJ_ETOOMANY); 
     407 
     408    /* Make sure evsub module has been initialized */ 
     409    PJ_ASSERT_RETURN(mod_evsub.mod.id != -1, PJ_EINVALIDOP); 
    407410 
    408411    /* Make sure no module with the specified name already registered: */ 
Note: See TracChangeset for help on using the changeset viewer.