Bug: when creating a new Array object (for example through PList::Node::FromPlist(plist_t node) ), the array_fill function is called from Array() constructor in line 51. It seems that the intended way of calling array_fill() is to pass the _array object by reference, however it is actually passed by value. Thus the changes to the array object made by array_fill() are discarded when the function returns.
Fix: pass _array by reference to keep the changes
Bug: when creating a new Array object (for example through PList::Node::FromPlist(plist_t node) ), the array_fill function is called from Array() constructor in line 51. It seems that the intended way of calling array_fill() is to pass the _array object by reference, however it is actually passed by value. Thus the changes to the array object made by array_fill() are discarded when the function returns. Fix: pass _array by reference to keep the changes