summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGravatar liujianfengv2021-06-26 11:43:42 +0800
committerGravatar Nikias Bassen2021-07-13 12:46:38 +0200
commitfeb0bcd102ff0abc34ffa04e8cabf26706ffdb38 (patch)
tree5a25275b1f3ffd9b5a0190257a7f2a2d9ab39d76 /test
parent48f7d8439f2bf7a9df19b8cda19e224efd3a56b1 (diff)
downloadlibplist-feb0bcd102ff0abc34ffa04e8cabf26706ffdb38.tar.gz
libplist-feb0bcd102ff0abc34ffa04e8cabf26706ffdb38.tar.bz2
cpp: Array: Make sure the array passed to array_fill ist passed by reference
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. This commit passes the _array by reference so we keep the changes.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions