From 5dc817d6d626913e8e0f22307545c9441ccf40e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 5 Aug 2010 07:09:59 +0000 Subject: Initialize tpcph to avoid warnings from clang: "The left operand of '>>' is a garbage value". svn path=/trunk/; revision=33713 --- epan/dissectors/packet-nt-tpcp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'epan/dissectors/packet-nt-tpcp.c') diff --git a/epan/dissectors/packet-nt-tpcp.c b/epan/dissectors/packet-nt-tpcp.c index 93484a30a9..d3d8be0a28 100644 --- a/epan/dissectors/packet-nt-tpcp.c +++ b/epan/dissectors/packet-nt-tpcp.c @@ -28,6 +28,7 @@ #endif #include +#include #ifdef HAVE_SYS_TYPES_H # include @@ -123,6 +124,8 @@ dissect_tpcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } else if (tpcph.version == TPCP_VER_2){ length = TPCP_VER_2_LENGTH; tvb_memcpy(tvb, (guint8 *) &tpcph, 0, length); + } else { + memset (&tpcph, 0, sizeof (tpcph)); } -- cgit v1.2.3