Changeset 14614

Show
Ignore:
Timestamp:
01/24/08 12:21:35 (11 months ago)
Author:
piotras
Message:

Set sitegroup property only when connection pointer is available

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-1-9/midgard/core/midgard/src/types.c

    r13374 r14614  
    144144        g_object_class_list_properties(g_type_class_peek(own_type), &propn); 
    145145    g_free(props); 
    146      
     146    
     147    self->mgd = NULL; 
     148 
    147149    priv->num_properties = propn; 
    148150 
     
    209211                        if(self->private->guid == NULL) { 
    210212 
     213                                /* Somehow this is fatal */ 
     214                                if(self->mgd == NULL) 
     215                                        return; 
    211216                                /* Then , allow only for SG0 admin and anonymous user */ 
    212217                                if(mgd_isroot(self->mgd)