(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_analysis.c) |
| |
| 3067 | | | rtp_boolean_data_func (GtkTreeViewColumn *column _U_, |
| 3068 | | | GtkCellRenderer *renderer, |
| 3069 | | | GtkTreeModel *model, |
| 3070 | | | GtkTreeIter *iter, |
| 3071 | | | gpointer user_data) |
| 3072 | | | { |
| 3073 | | | gboolean bool_val; |
| 3074 | | | gchar buf[20]; |
| 3075 | | | |
| 3076 | | | gint bool_col = GPOINTER_TO_INT(user_data); |
| 3077 | | | |
| 3078 | | | gtk_tree_model_get(model, iter, bool_col, &bool_val, -1); |
| 3079 | | | |
| 3080 | | | switch(bool_col){ |
| 3081 | | | case MARKER_COLUMN: |
| 3082 | | | g_strlcpy(buf, bool_val ? "SET" : "", sizeof(buf)); |
| 3083 | | | break; |
| 3084 | | | default: |
| 3085 | | | g_assert_not_reached();
x /usr/include/glib-2.0/glib/gtestutils.h |
| |
73 | #define g_assert_not_reached() do { g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) |
| |
x /usr/include/glib-2.0/glib/gmacros.h |
| |
160 | # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) |
| |
|
| 3086 | | | break; |
Unreachable Control Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 3087 | | | } |
| 3088 | | | g_object_set(renderer, "text", buf, NULL); |
| 3089 | | | } |
| |