diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-03-05 11:09:52 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-06 18:37:11 +0000 |
commit | 65ec933f91dd9ac95679c24c830533953e384991 (patch) | |
tree | b761d1cbfc10d97e274ce599bb059ba2b02e9083 /src/widgets/util/qcompleter_p.h | |
parent | 5e68c84ca6d619f51292aab4ee6dc6c6ed69438a (diff) |
QCompleter: QMatchData: init all fields in default ctor
Found by UBSan:
src/widgets/util/qcompleter_p.h:130:8: runtime error: load of value 249, which is not a valid value for type 'bool'
Change-Id: I0529e54e17a6f4d6add91786a2d5687f2d043531
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'src/widgets/util/qcompleter_p.h')
-rw-r--r-- | src/widgets/util/qcompleter_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/util/qcompleter_p.h b/src/widgets/util/qcompleter_p.h index b100f24f9b..afcdfe7aa2 100644 --- a/src/widgets/util/qcompleter_p.h +++ b/src/widgets/util/qcompleter_p.h @@ -122,7 +122,7 @@ private: }; struct QMatchData { - QMatchData() : exactMatchIndex(-1) { } + QMatchData() : exactMatchIndex(-1), partial(false) { } QMatchData(const QIndexMapper& indices, int em, bool p) : indices(indices), exactMatchIndex(em), partial(p) { } QIndexMapper indices; |