Changeset 3566

Show
Ignore:
Timestamp:
08/20/08 11:02:40 (3 months ago)
Author:
bricks
Message:

Added missing osync_trace(TRACE_EXIT) in osync_member_get_config
ensure that objtype is not null to avoid segfault in osync_obj_engine_new

Location:
trunk/opensync
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/opensync/engine/opensync_obj_engine.c

    r3548 r3566  
    621621OSyncObjEngine *osync_obj_engine_new(OSyncEngine *parent, const char *objtype, OSyncFormatEnv *formatenv, OSyncError **error) 
    622622{ 
     623        osync_assert(parent); 
     624        osync_assert(objtype); 
     625         
    623626        osync_trace(TRACE_ENTRY, "%s(%p, %s, %p, %p)", __func__, parent, objtype, formatenv, error); 
    624         g_assert(parent); 
    625         g_assert(objtype); 
    626627         
    627628        OSyncObjEngine *engine = osync_try_malloc0(sizeof(OSyncObjEngine), error); 
  • trunk/opensync/group/opensync_member.c

    r3440 r3566  
    464464        osync_member_set_config(member, config); 
    465465 
     466        osync_trace(TRACE_EXIT, "%s", __func__); 
    466467        return config; 
    467468