author | eilers <eilers> | 2005-03-19 17:13:47 (UTC) |
---|---|---|
committer | eilers <eilers> | 2005-03-19 17:13:47 (UTC) |
commit | 205bc8739f3f2c464b046bf8ea53f985a62c12a4 (patch) (unidiff) | |
tree | 74d807160d4cbebbfef2bf26af975f11bed8da72 | |
parent | ea15abad0554edab0746f342fafddd461a0fb0eb (diff) | |
download | opie-205bc8739f3f2c464b046bf8ea53f985a62c12a4.zip opie-205bc8739f3f2c464b046bf8ea53f985a62c12a4.tar.gz opie-205bc8739f3f2c464b046bf8ea53f985a62c12a4.tar.bz2 |
Oops.. member variable m_read was not initialized.
This may cause crash as reported by #1608 (hopefully)
-rw-r--r-- | libopie2/opiepim/ChangeLog | 1 | ||||
-rw-r--r-- | libopie2/opiepim/backend/opimaccessbackend.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiepim/ChangeLog b/libopie2/opiepim/ChangeLog index a1b4db0..84517fb 100644 --- a/libopie2/opiepim/ChangeLog +++ b/libopie2/opiepim/ChangeLog | |||
@@ -1,10 +1,11 @@ | |||
1 | 2005-03.19 Stefan Eilers <stefan@eilers-online.net> | 1 | 2005-03.19 Stefan Eilers <stefan@eilers-online.net> |
2 | * Minor update for sorted(). Now ignoring any category search if "DoNotShowWithCategory" filter is activated. | 2 | * Minor update for sorted(). Now ignoring any category search if "DoNotShowWithCategory" filter is activated. |
3 | * Fixing uninitialized member variable, caused crash of backend | ||
3 | 2005-03-18 Stefan Eilers <stefan@eilers-online.net> | 4 | 2005-03-18 Stefan Eilers <stefan@eilers-online.net> |
4 | * Rewrote generic sorted filter and added filter for "DoNotShowWithCategory", needed by addressbook (other filters need to be added!) | 5 | * Rewrote generic sorted filter and added filter for "DoNotShowWithCategory", needed by addressbook (other filters need to be added!) |
5 | 2005-01-16 Stefan Eilers <stefan@eilers-online.net> | 6 | 2005-01-16 Stefan Eilers <stefan@eilers-online.net> |
6 | * Added new OPimEventSortVector class, improved OPimSortVector | 7 | * Added new OPimEventSortVector class, improved OPimSortVector |
7 | * OPimAccessBackend now supports generic sorting. | 8 | * OPimAccessBackend now supports generic sorting. |
8 | 2005-01-03 Stefan Eilers <stefan@eilers-online.net> | 9 | 2005-01-03 Stefan Eilers <stefan@eilers-online.net> |
9 | * Fixing bug in API documentation | 10 | * Fixing bug in API documentation |
10 | * Moving hasQuerySettings() and querySettings() to OPimAccessTemplate to be available for all frontends | 11 | * Moving hasQuerySettings() and querySettings() to OPimAccessTemplate to be available for all frontends |
diff --git a/libopie2/opiepim/backend/opimaccessbackend.h b/libopie2/opiepim/backend/opimaccessbackend.h index 6666fd6..71f81f4 100644 --- a/libopie2/opiepim/backend/opimaccessbackend.h +++ b/libopie2/opiepim/backend/opimaccessbackend.h | |||
@@ -137,16 +137,17 @@ private: | |||
137 | 137 | ||
138 | }; | 138 | }; |
139 | 139 | ||
140 | template <class T> | 140 | template <class T> |
141 | OPimAccessBackend<T>::OPimAccessBackend(int acc) | 141 | OPimAccessBackend<T>::OPimAccessBackend(int acc) |
142 | : m_acc( acc ) | 142 | : m_acc( acc ) |
143 | { | 143 | { |
144 | m_front = 0l; | 144 | m_front = 0l; |
145 | m_read = 20; | ||
145 | } | 146 | } |
146 | template <class T> | 147 | template <class T> |
147 | OPimAccessBackend<T>::~OPimAccessBackend() { | 148 | OPimAccessBackend<T>::~OPimAccessBackend() { |
148 | 149 | ||
149 | } | 150 | } |
150 | 151 | ||
151 | /* | 152 | /* |
152 | * Slow but default matchRegexp Implementation | 153 | * Slow but default matchRegexp Implementation |