Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc-spoolss.c:541

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

dissect_SYSTEM_TIME

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 502  dissect_SYSTEM_TIME(tvbuff_t *tvb, int offset, packet_info *pinfo,
 503                      proto_tree *tree, guint8 *drep, const char *name,  
 504                      gboolean add_subtree, char **data)
 505  {
 506          proto_item *item = NULL;
 507          proto_tree *subtree = tree;
 508          guint16 year, month, day, hour, minute, second, millisecond;
 509          char *str;
 510   
 511          if (add_subtree) {
 512                  item = proto_tree_add_text(tree, tvb, offset, 16, "%s", name);
 513                  subtree = proto_item_add_subtree(item, ett_SYSTEM_TIME);
 514          }
 515   
 516          offset = dissect_ndr_uint16(
 517                  tvb, offset, pinfo, subtree, drep, hf_time_year, &year);
 518   
 519          offset = dissect_ndr_uint16(
 520                  tvb, offset, pinfo, subtree, drep, hf_time_month, &month);
 521   
 522          offset = dissect_ndr_uint16(
 523                  tvb, offset, pinfo, subtree, drep, hf_time_dow, NULL);
 524   
 525          offset = dissect_ndr_uint16(
 526                  tvb, offset, pinfo, subtree, drep, hf_time_day, &day);
 527   
 528          offset = dissect_ndr_uint16(
 529                  tvb, offset, pinfo, subtree, drep, hf_time_hour, &hour);
 530   
 531          offset = dissect_ndr_uint16(
 532                  tvb, offset, pinfo, subtree, drep, hf_time_minute, &minute);
 533   
 534          offset = dissect_ndr_uint16(
 535[+]                 tvb, offset, pinfo, subtree, drep, hf_time_second, &second);
 536   
 537          offset = dissect_ndr_uint16(
 538                  tvb, offset, pinfo, subtree, drep, hf_time_msec, &millisecond);
 539   
 540          str = ep_strdup_printf("%d/%02d/%02d %02d:%02d:%02d.%03d",  
 541                                year, month, day, hour, minute, second,
 542                                millisecond);
Show more  




Change Warning 2087.33847 : Uninitialized Variable

Because they are very similar, this warning shares annotations with warnings 2087.33848, 2087.33849, 2087.33850, 2087.33851, and 2087.33852.

Priority:
State:
Finding:
Owner:
Note: