(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/iax2_analysis.c) |
| |
| 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 | | | |
| 2980 | | | gint float_col = GPOINTER_TO_INT(user_data); |
| 2981 | | | |
| 2982 | | | gtk_tree_model_get(model, iter, float_col, &float_val, -1); |
| 2983 | | | |
| 2984 | | | |
| 2985 | | | savelocale = setlocale(LC_NUMERIC, NULL);
x /usr/include/locale.h |
| |
37 | #define LC_NUMERIC __LC_NUMERIC |
| |
|
Unreachable Call
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 2986 | | | |
| 2987 | | | |
| 2988 | | | |
| 2989 | | | setlocale(LC_NUMERIC, "C");
x /usr/include/locale.h |
| |
37 | #define LC_NUMERIC __LC_NUMERIC |
| |
|
| 2990 | | | |
| 2991 | | | g_snprintf(buf, sizeof(buf), "%.2f", float_val); |
| 2992 | | | |
| 2993 | | | setlocale(LC_NUMERIC, savelocale);
x /usr/include/locale.h |
| |
37 | #define LC_NUMERIC __LC_NUMERIC |
| |
|
| 2994 | | | |
| 2995 | | | g_object_set(renderer, "text", buf, NULL); |
| 2996 | | | } |
| |