Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at packet-mq.c:933

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_mq_or

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-mq.c)expand/collapse
Show more  
 919  dissect_mq_or(tvbuff_t *tvb, proto_tree *tree, gint offset, gint iNbrRecords, gint offsetOR)
 920  {
 921          proto_tree      *mq_tree = NULL;
 922          proto_item      *ti = NULL;
 923          gint iSizeOR = 0;
 924          if (offsetOR != 0)
 925          {
 926                  iSizeOR = iNbrRecords * 96;
 927                  if (tvb_length_remaining(tvb, offset) >= iSizeOR)
 928                  {
 929                          if (tree)
 930                          {
 931                                  gint iOffsetOR = 0;
 932                                  gint iRecord = 0;
 933                                  for (iRecord = 0; iRecord < iNbrRecords ; iRecord++)
 934                                  {
 935                                          ti = proto_tree_add_text(tree, tvb, offset + iOffsetOR, 96, MQ_TEXT_OR);
 936                                          mq_tree = proto_item_add_subtree(ti, ett_mq_or);
 937                                          proto_tree_add_item(mq_tree, hf_mq_or_objname, tvb, offset + iOffsetOR, 48, FALSE);
 938                                          proto_tree_add_item(mq_tree, hf_mq_or_objqmgrname, tvb, offset + iOffsetOR + 48, 48, FALSE);
 939                                          iOffsetOR += 96;
 940                                  }
 941                          }
 942                  }
 943                  else iSizeOR = 0;
 944          }
 945          return iSizeOR;
 946  }
Show more  




Change Warning 2759.31958 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: