Fix CID 715143: assert that the preference we were looking for was found. It
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 25 Oct 2013 15:00:00 +0000 (15:00 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Fri, 25 Oct 2013 15:00:00 +0000 (15:00 -0000)
should be which is why this is an assertion not a NULL check.

svn path=/trunk/; revision=52847

epan/prefs.c

index 4021df3e56b450582b6d74f03dbf1d63d5d166a9..6eab6ac2a27de3d323384188a72c3f1e82481a65 100644 (file)
@@ -1538,6 +1538,7 @@ static void column_format_reset_cb(pref_t* pref)
     }
 
     col_num_pref = prefs_find_preference(gui_column_module, PRS_COL_NUM);
+    g_assert(col_num_pref != NULL); /* Should never happen */
     column_num_reset_cb(col_num_pref);
 }