aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-16 23:54:57 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-01-16 23:54:57 +0530
commit7e124cf95e2a85897bd78b6362ff9b9b1b87c4b8 (patch)
tree38020068c1e59779f7f778c979f0ee881253e62f /complete.h
parent6f330f961b0186aa4d5f2f3f45b19b84ec7b3516 (diff)
Added constructor to completion_t for guarranted initialzation of flags attribute.
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/complete.h b/complete.h
index 3c85253f..1cfeac28 100644
--- a/complete.h
+++ b/complete.h
@@ -127,6 +127,10 @@ struct completion_t
*/
int flags;
+ completion_t () {
+ flags = 0;
+ }
+
bool operator < (const completion_t& rhs) const { return this->completion < rhs.completion; }
bool operator == (const completion_t& rhs) const { return this->completion == rhs.completion; }
bool operator != (const completion_t& rhs) const { return this->completion != rhs.completion; }