summaryrefslogtreecommitdiff
path: root/frame_tvbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'frame_tvbuff.c')
-rw-r--r--frame_tvbuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/frame_tvbuff.c b/frame_tvbuff.c
index 74a40e2030..b47d206f07 100644
--- a/frame_tvbuff.c
+++ b/frame_tvbuff.c
@@ -74,6 +74,8 @@ frame_cache(struct tvb_frame *frame_tvb)
{
struct wtap_pkthdr phdr; /* Packet header */
+ memset(&phdr, 0, sizeof(struct wtap_pkthdr));
+
if (frame_tvb->buf == NULL) {
frame_tvb->buf = (struct Buffer *) g_malloc(sizeof(struct Buffer));