aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r--epan/column-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c
index 06df303888..a472206652 100644
--- a/epan/column-utils.c
+++ b/epan/column-utils.c
@@ -319,7 +319,7 @@ have_custom_cols(column_info *cinfo)
{
/* The same as check_col(), but without the check to see if the column
* is writable. */
- if (cinfo->col_first[COL_CUSTOM] >= 0)
+ if (cinfo && cinfo->col_first[COL_CUSTOM] >= 0)
return TRUE;
else
return FALSE;