From cb695ca13226fa06d26b312ec30e5c196f39b8d1 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 2 Nov 2014 22:13:01 +0100 Subject: [PATCH] initialze appended symbols with 0 --- src/libebus/symbol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/libebus/symbol.h diff --git a/src/libebus/symbol.h b/src/libebus/symbol.h old mode 100644 new mode 100755 index f4199a63..02288978 --- a/src/libebus/symbol.h +++ b/src/libebus/symbol.h @@ -69,7 +69,7 @@ public: * @param index the index of the symbol to return. * @return the reference to the symbol at the specified index. */ - unsigned char& operator[](const size_t index) { if (index >= m_data.size()) m_data.resize(index+1); return m_data[index]; } + unsigned char& operator[](const size_t index) { if (index >= m_data.size()) m_data.resize(index+1, 0); return m_data[index]; } /** * @brief Returns the symbol at the specified index. * @param index the index of the symbol to return.