aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rdp.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-13 02:55:05 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-13 02:55:05 +0000
commite2d46b80234927a853c30b0c6f61da6951a42fd2 (patch)
tree0bf26030f2302c187c284175d3dd0f4ce3a43c67 /epan/dissectors/packet-rdp.c
parentc34050d629d5be72e56bb1a451907eb5d1d0f194 (diff)
Fix 4 instances of Visual Studio Code Analysis warnings C6001: Using uninitialized memory 'pduType2', 'numberCapabilities' (2x), and 'pduType'
svn path=/trunk/; revision=54013
Diffstat (limited to 'epan/dissectors/packet-rdp.c')
-rw-r--r--epan/dissectors/packet-rdp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rdp.c b/epan/dissectors/packet-rdp.c
index 5d3ea91ee8..e35defc77b 100644
--- a/epan/dissectors/packet-rdp.c
+++ b/epan/dissectors/packet-rdp.c
@@ -1076,7 +1076,7 @@ dissect_rdp_channelPDU(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
static int
dissect_rdp_shareDataHeader(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) {
- guint32 pduType2;
+ guint32 pduType2 = 0;
guint32 compressedType;
guint32 action = 0;
@@ -1240,7 +1240,7 @@ static int
dissect_rdp_demandActivePDU(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) {
guint32 lengthSourceDescriptor;
- guint32 numberCapabilities;
+ guint32 numberCapabilities = 0;
rdp_field_info_t fields[] = {
{hf_rdp_shareId, 4, NULL, 0, 0, NULL },
@@ -1269,7 +1269,7 @@ static int
dissect_rdp_confirmActivePDU(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) {
guint32 lengthSourceDescriptor;
- guint32 numberCapabilities;
+ guint32 numberCapabilities = 0;
rdp_field_info_t fields[] = {
{hf_rdp_shareId, 4, NULL, 0, 0, NULL },
@@ -1311,7 +1311,7 @@ dissect_rdp_SendData(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
int offset = 0;
guint32 flags = 0;
guint32 cbDomain, cbUserName, cbPassword, cbAlternateShell, cbWorkingDir,
- cbClientAddress, cbClientDir, cbAutoReconnectLen, wBlobLen, pduType;
+ cbClientAddress, cbClientDir, cbAutoReconnectLen, wBlobLen, pduType = 0;
guint32 bMsgType;
guint32 encryptedLen = 0;
conversation_t *conversation;