diff options
author | tihmstar | 2019-06-26 18:27:20 +0200 |
---|---|---|
committer | GitHub | 2019-06-26 18:27:20 +0200 |
commit | ec957fb8253ffbced690fb5bcb1743f015ab0815 (patch) | |
tree | 8ca873ad0efe38394711b53c30007e4785e5a5fc /src/strbuf.h | |
parent | 17546f53ac1377b0d4f45a800aaec7366ba5b6a0 (diff) | |
download | libplist-ec957fb8253ffbced690fb5bcb1743f015ab0815.tar.gz libplist-ec957fb8253ffbced690fb5bcb1743f015ab0815.tar.bz2 |
Fixed bug in dictionary_fill
Bug: when creating a new Dictionary object (for example through PList::Node::FromPlist(plist_t node) ), the dictionary_fill function is called from Dictionary() constructor in line 50. It seems that the intended way of calling dictionary_fill() is to pass the _map object by reference, however it is actually passed by value. Thus the changes to the map object made by dictionary_fill() are discarded when the function returns.
Fix: pass _map by reference to keep the changes
Diffstat (limited to 'src/strbuf.h')
0 files changed, 0 insertions, 0 deletions