summaryrefslogtreecommitdiff
path: root/code/core/rbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/core/rbuf.c')
-rw-r--r--code/core/rbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/core/rbuf.c b/code/core/rbuf.c
index d6c9c6e..0865e67 100644
--- a/code/core/rbuf.c
+++ b/code/core/rbuf.c
@@ -3,6 +3,7 @@
#include <string.h>
int ecp_rbuf_init(ECPRBuffer *rbuf, ECPRBMessage *msg, unsigned int msg_size) {
+ memset(msg, 0, sizeof(ECPRBMessage) * msg_size);
rbuf->msg = msg;
if (msg_size) {
rbuf->msg_size = msg_size;