diff options
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/column.c b/epan/column.c index 31232a6aaf..1bca3a40ae 100644 --- a/epan/column.c +++ b/epan/column.c @@ -620,6 +620,9 @@ get_column_format(gint col) { GList *clp = g_list_nth(prefs.col_list, col); fmt_data *cfmt; + if (!clp) /* Invalid column requested */ + return -1; + cfmt = (fmt_data *) clp->data; return(get_column_format_from_str(cfmt->fmt)); |