Fix various Visual C++ analysis warnings.
[metze/wireshark/wip.git] / epan / dissectors / packet-aoe.c
index f310cd37bfa38b63e2a3afa250a2df0ad14d60c4..a71ef0e919e825ade3831baf5039092f47a5d62c 100644 (file)
@@ -305,7 +305,7 @@ dissect_ata_pdu(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset,
     }
   } else {
     proto_tree_add_item(tree, hf_aoe_astatus, tvb, offset, 1, FALSE);
-    if(ata_info && ata_info->request_frame){
+    if(ata_info != NULL && ata_info->request_frame){
       /* we dont know what command it was unless we saw the request_frame */
       tmp_item=proto_tree_add_uint(tree, hf_aoe_acmd, tvb, 0, 0, ata_info->cmd);
       PROTO_ITEM_SET_GENERATED(tmp_item);