Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at iax2_analysis.c:2985

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

iax2_float_data_func

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/iax2_analysis.c)expand/collapse
Show more  
 2969  iax2_float_data_func (GtkTreeViewColumn *column _U_,
 2970                        GtkCellRenderer   *renderer,
 2971                        GtkTreeModel      *model,
 2972                        GtkTreeIter       *iter,
 2973                        gpointer           user_data)
 2974  {
 2975          gfloat  float_val;
 2976          gchar   buf[20];
 2977          char *savelocale;
 2978   
 2979          /* the col to get data from is in userdata */
 2980          gint float_col = GPOINTER_TO_INT(user_data);
 2981   
 2982          gtk_tree_model_get(model, iter, float_col, &float_val, -1);
 2983   
 2984          /* save the current locale */
 2985          savelocale = setlocale(LC_NUMERIC, NULL);
 2986          /* switch to "C" locale to avoid problems with localized decimal separators
 2987           * in g_snprintf("%f") functions 
 2988           */
 2989          setlocale(LC_NUMERIC, "C");
 2990   
 2991          g_snprintf(buf, sizeof(buf), "%.2f", float_val);
 2992          /* restore previous locale setting */
 2993          setlocale(LC_NUMERIC, savelocale);
 2994   
 2995          g_object_set(renderer, "text", buf, NULL);
 2996  }
Show more  




Change Warning 4390.30062 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: