diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-10-12 07:56:26 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-10-12 07:56:26 +0000 |
commit | 23c0b494a722771a04f9ca9ed59d95c335e58a56 (patch) | |
tree | c23423843aae1fb49901f79053461c5d60212486 /epan/column.c | |
parent | 1c8f8b4f3def4ded5b0e41b9f9e3f0d70f6ea300 (diff) |
Return from get_column_format() when invalid column requested.
svn path=/trunk/; revision=30530
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)); |