diff options
author | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-09-20 07:48:33 +0000 |
---|---|---|
committer | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-09-20 07:48:33 +0000 |
commit | f4d06035a043facece486d7d41a359e2ee5e4620 (patch) | |
tree | e20319540801d63089ecb21dbd839a03da0eb923 /epan/column-utils.c | |
parent | dd9b8f70a28911c1d070d93cebd7d8fdf45c3c27 (diff) |
Add a couple of g_asserts
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29992 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r-- | epan/column-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c index c015c91465..53aec77386 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -1325,6 +1325,9 @@ col_set_port(packet_info *pinfo, int col, gboolean is_res, gboolean is_src, gboo gboolean col_based_on_frame_data(column_info *cinfo, gint col) { + g_assert(cinfo); + g_assert(col < cinfo->num_cols); + switch (cinfo->col_fmt[col]) { case COL_NUMBER: |