Commit 9cd1d53
committed
Fix corrupted global data with empty key
So what was happening was that in EditData's deserialization constructor, loadGlobal was being called before any of the primitive types were being initialized, which resulted in globalObject usually being true, then EdittimeGlobal would generate a new good EditData which would be promptly overwitten with the garbage data. It always happens with the empty string because the strings are not primitive and thus get default constructed. The fix is to just have the deserialization constructor call the default constructor first to initialize everything to known good values. Yay for C++11/14 allowing for a one-line fix :)1 parent cd76e15 commit 9cd1d53
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
0 commit comments