From: scipio Date: Tue, 19 Feb 2008 21:33:13 +0000 (+0000) Subject: Correct clear() implementation. X-Git-Tag: release_tinyos_2_1_0_0~515 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=c6303e07e3a6fd90ec4d966910bebfb2e213d808;p=tinyos-2.x.git Correct clear() implementation. --- diff --git a/tos/lib/serial/SerialActiveMessageP.nc b/tos/lib/serial/SerialActiveMessageP.nc index 0eb5e685..6296441c 100644 --- a/tos/lib/serial/SerialActiveMessageP.nc +++ b/tos/lib/serial/SerialActiveMessageP.nc @@ -95,6 +95,7 @@ implementation { } command void Packet.clear(message_t* msg) { + memset(getHeader(msg), 0, sizeof(serial_header_t)); return; }