avoid crashing when Debug_Cfg is set and no Payload is given for a Pdu
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Feb 2005 02:16:35 +0000 (02:16 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 22 Feb 2005 02:16:35 +0000 (02:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13464 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/mate/mate_setup.c

index 5732928fd456730d964efc330ff75d81068f5e57..dd3fe7ad5f16f86cf7984c964903c90062bbc36a 100644 (file)
@@ -1133,7 +1133,7 @@ static void print_pdu_config(mate_cfg_pdu* cfg) {
 
        *(s->str + s->len - 1) = ';';
 
-       if (cfg->payload_ranges->len) {
+       if (cfg->payload_ranges) {
                g_string_sprintfa(s, " Payload=");
                
                for (i = 0; i < cfg->payload_ranges->len; i++) {