forked from osmocom/wireshark
Fix CID 715144: assert that the preference we were looking for was found. It
should be which is why this is an assertion not a NULL check. svn path=/trunk/; revision=52846
This commit is contained in:
parent
4cfc0f27cb
commit
81b0681c12
|
@ -1587,7 +1587,9 @@ static prefs_set_pref_e column_format_set_cb(pref_t* pref, const gchar* value, g
|
|||
free_col_info(*pref->varp.list);
|
||||
*pref->varp.list = NULL;
|
||||
hidden_pref = prefs_find_preference(gui_column_module, PRS_COL_HIDDEN);
|
||||
g_assert(hidden_pref != NULL); /* Should never happen */
|
||||
col_num_pref = prefs_find_preference(gui_column_module, PRS_COL_NUM);
|
||||
g_assert(col_num_pref != NULL); /* Should never happen */
|
||||
llen = g_list_length(col_l);
|
||||
*col_num_pref->varp.uint = llen / 2;
|
||||
col_l_elt = g_list_first(col_l);
|
||||
|
|
Loading…
Reference in New Issue