Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at color_filters.c:83

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

color_filters_add_tmp

(/home/sate/Testcases/c/cve/wireshark-1.2.0/color_filters.c)expand/collapse
Show more  
 94  color_filters_add_tmp(GSList **cfl)
 95  {
 96          gchar  *name = NULL;
 97          guint32 i;
 98          gchar** bg_colors;
 99          gchar** fg_colors;
 100          unsigned long int cval;
 101          color_t bg_color, fg_color;
 102          color_filter_t *colorf;
 103   
 104          g_assert(strlen(prefs.gui_colorized_fg)==69);
 105          g_assert(strlen(prefs.gui_colorized_bg)==69);
 106          fg_colors = g_strsplit(prefs.gui_colorized_fg, ",", -1);
 107          bg_colors = g_strsplit(prefs.gui_colorized_bg, ",", -1);
 108   
 109          for ( i=1 ; i<=10 ; i++ ) {
 110                  name = g_strdup_printf("%s%02d",TEMP_COLOR_PREFIX,i);
 111   
 112                  /* retrieve background and foreground colors */
 113                  cval = strtoul(fg_colors[i-1], NULL, 16);
 114                  initialize_color(&fg_color, RED_COMPONENT(cval),
 115                                              GREEN_COMPONENT(cval),
 116                                              BLUE_COMPONENT(cval) );
 117                  cval = strtoul(bg_colors[i-1], NULL, 16);
 118                  initialize_color(&bg_color, RED_COMPONENT(cval),
 119                                              GREEN_COMPONENT(cval),
 120[+]                                             BLUE_COMPONENT(cval) );
 121[+]                 colorf = color_filter_new(name, NULL, &bg_color, &fg_color, TRUE);
expand/collapse

color_filter_new

(/home/sate/Testcases/c/cve/wireshark-1.2.0/color_filters.c)expand/collapse
Show more  
 71  color_filter_t *
 72  color_filter_new(const gchar *name,    /* The name of the filter to create */
 73                   const gchar *filter_string, /* The string representing the filter */
 74                   color_t *bg_color,    /* The background color */
 75                   color_t *fg_color,    /* The foreground color */
 76                   gboolean disabled)     /* Is the filter disabled? */
 77  {
 78          color_filter_t *colorf;
 79   
 80          colorf = g_malloc(sizeof (color_filter_t));
 81          colorf->filter_name = g_strdup(name);
 82          colorf->filter_text = g_strdup(filter_string);
 83          colorf->bg_color = *bg_color;
Show more  
Show more  




Change Warning 4162.30597 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: