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:
Jeff Morriss 2013-10-25 14:57:55 +00:00
parent 4cfc0f27cb
commit 81b0681c12
1 changed files with 2 additions and 0 deletions

View File

@ -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);