Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at k12text.c:2478

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

k12text_dump

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/k12text.c)expand/collapse
Show more  
 2457  static gboolean k12text_dump(wtap_dumper *wdh _U_, const struct wtap_pkthdr *phdr,
 2458                           const union wtap_pseudo_header *pseudo_header _U_,
 2459                           const guchar *pd, int *err _U_) {
 2460          char buf[196808];
 2461          size_t left = 196808;
 2462          gint wl;
 2463          char* p=buf;
 2464          const char* str_enc = "";
 2465          guint i;
 2466          guint ns;
 2467          guint ms;
 2468   
 2469          ms = phdr->ts.nsecs / 1000000;
 2470          ns = (phdr->ts.nsecs - (1000000*ms))/1000;
 2471   
 2472          for(i=0; encaps[i].s; i++) {
 2473                  str_enc = encaps[i].s;
 2474                  if (phdr->pkt_encap == encaps[i].e) break;
 2475          }
 2476   
 2477          strftime(p,90,"+---------+---------------+----------+\r\n%H:%M:%S,",gmtime(&phdr->ts.secs));
 2478         wl = strlen(p);
Show more  




Change Warning 1093.30046 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: