nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#985 Not all property iterators in gldcore/object.c process parent class properties, #2710

Open nikhilgupta10 opened 7 years ago

nikhilgupta10 commented 7 years ago

This can lead to missing values when dumps, saves, and other global actions are handled. The correct iterator is

for ( prop=obj->oclass->pmap; prop!=NULL; prop=(prop->next?prop->next:(prop->oclass->parent?prop->oclass->parent->pmap:NULL)) )
{
    // ...
}
~~~,
nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: The user was set to null. Therefore assigning this to afisher1.