aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 16:39:47 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-25 14:27:07 +0100
commita42b2ad5ed6b71457c87651e24b01ba6dfb92d22 (patch)
tree03f9b24a6cd51402d75e907252cac0d292c6e1b4
parent550bb88a9e70b90b60720b0612e136c3467c5281 (diff)
llc: Initialize the LLC frame with garbage to detect wrong usage
-rw-r--r--src/llc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/llc.cpp b/src/llc.cpp
index b756d33..c557584 100644
--- a/src/llc.cpp
+++ b/src/llc.cpp
@@ -33,6 +33,8 @@ void gprs_llc::reset()
{
m_index = 0;
m_length = 0;
+
+ memset(frame, 0x42, sizeof(frame));
}
void gprs_llc::reset_frame_space()