Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at file.c:297

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

cf_open

(/home/sate/Testcases/c/cve/wireshark-1.2.0/file.c)expand/collapse
Show more  
 228  cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
 229  {
 230    wtap       *wth;
 231    gchar       *err_info;
 232   
 233[+]   wth = wtap_open_offline(fname, err, &err_info, TRUE);
 234    if (wth == NULL)
 235      goto fail;
 236   
 237    /* The open succeeded.  Close whatever capture file we had open,
 238       and fill in the information for this file. */
 239    cf_reset_state(cf);
 240   
 241    /* Initialize all data structures used for dissection. */
 242    init_dissection();
 243   
 244    /* We're about to start reading the file. */
 245    cf->state = FILE_READ_IN_PROGRESS;
 246
285
Show [ Lines 246 to 285 omitted. ]
 286   
 287    fileset_file_opened(fname);
 288   
 289    if(cf->cd_t == WTAP_FILE_BER) {
 290      /* tell the BER dissector the file name */
 291      ber_set_filename(cf->filename);
 292    }
 293   
 294    return CF_OK;
 295   
 296  fail:
 297    cf_open_failure_alert_box(fname, *err, err_info, FALSE, 0);
Show more  




Change Warning 3967.30833 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: