Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at capture_opts.c:753

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

capture_opts_trim_iface

(/home/sate/Testcases/c/cve/wireshark-1.2.0/capture_opts.c)expand/collapse
Show more  
 731  gboolean capture_opts_trim_iface(capture_options *capture_opts, const char *capture_device)
 732  {
 733      GList       *if_list;
 734      if_info_t   *if_info;
 735      int         err;
 736      gchar       *err_str;
 737   
 738   
 739      /* Did the user specify an interface to use? */
 740      if (capture_opts->iface == NULL) {
 741        /* No - is a default specified in the preferences file? */
 742        if (capture_device != NULL) {
 743            /* Yes - use it. */
 744            capture_opts->iface = g_strdup(capture_device);
 745            /*  We don't set iface_descr here because doing so requires 
 746             *  capture_ui_utils.c which requires epan/prefs.c which is
 747             *  probably a bit too much dependency for here...
 748             */
 749        } else {
 750          /* No - pick the first one from the list of interfaces. */
 751[+]         if_list = get_interface_list(&err, &err_str);
 752          if (if_list == NULL) {
 753            switch (err) {
Show more  




Change Warning 4166.30246 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: