summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libthor/thor_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libthor/thor_net.c b/libthor/thor_net.c
index a3e8a8f..ba044be 100644
--- a/libthor/thor_net.c
+++ b/libthor/thor_net.c
@@ -339,6 +339,8 @@ static int thor_net_send_raw_data(thor_device_handle *th,
transfer.ret = 0;
/* Init chunk */
+ memset(&chunk, 0, sizeof(struct t_thor_net_chunk));
+ chunk.nh = nh;
chunk.user_data = &transfer;
chunk.useful_size = 0;
chunk.trans_unit_size = trans_unit_size;