diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-17 23:00:34 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-17 23:00:34 +0000 |
commit | d00e4da3402f9370a8c151113872ed2e0ddec00c (patch) | |
tree | 5b0ad41e9caae660481448b8bfcaacaae0a38884 /epan/dissectors/packet-cip.c | |
parent | 6a7492280d2c1fb2900b36317fe5084cf87351d7 (diff) |
Fix some Visual C++ analysis warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35988 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cip.c')
-rw-r--r-- | epan/dissectors/packet-cip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cip.c b/epan/dissectors/packet-cip.c index cbf19127b7..41688cd2d8 100644 --- a/epan/dissectors/packet-cip.c +++ b/epan/dissectors/packet-cip.c @@ -1793,7 +1793,7 @@ dissect_cip_cm_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, int item_ /* Special handling for Unconnected send response. If successful, embedded service code is sent. * If failed, it can be either an Unconnected send response or the embedded service code response. */ preq_info = (cip_req_info_t*)p_get_proto_data( pinfo->fd, proto_cip ); - if ( preq_info && ( tvb_get_guint8( tvb, offset ) & 0x80 ) + if ( preq_info != NULL && ( tvb_get_guint8( tvb, offset ) & 0x80 ) && preq_info->bService == SC_CM_UNCON_SEND ) { |