Have a filled COL_INFO, even if tree is NULL
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Dec 2007 00:55:01 +0000 (00:55 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Dec 2007 00:55:01 +0000 (00:55 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23966 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-pcep.c

index 09a504e18c4367156ab1e56537708704b32f42ab..f9568856558a880bdafcb90e8f74be47fff73444 100644 (file)
@@ -2304,12 +2304,10 @@ dissect_pcep_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCEP");
 
        /* Clear out stuff in the info column */
-       if(check_col(pinfo->cinfo,COL_INFO))
+       if (check_col(pinfo->cinfo,COL_INFO))
                col_clear(pinfo->cinfo,COL_INFO);
 
-       if (tree) {
-               dissect_pcep_msg_tree(tvb, tree, ett_pcep, pinfo);
-       }
+       dissect_pcep_msg_tree(tvb, tree, ett_pcep, pinfo);
 }
 
 static void
@@ -2319,7 +2317,7 @@ dissect_pcep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        dissect_pcep_pdu);
 }
 
-/*Register le protocol with wireshark*/
+/*Register the protocol with wireshark*/
 void
 proto_register_pcep(void){