diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-24 13:19:03 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-24 13:19:03 +0000 |
commit | 21319003d514593953885f64ec0b43fe56379a98 (patch) | |
tree | 75da148c4972e69edb377ec8763357a608153e8c | |
parent | a777700ac79a51330ca0060e524e52c4a2b705f4 (diff) | |
download | wireshark-21319003d514593953885f64ec0b43fe56379a98.tar.gz |
Added an extra validity check for cust_format_info.
svn path=/trunk/; revision=34235
-rw-r--r-- | epan/prefs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index 89bc23f329..c4d5478fb1 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -2044,7 +2044,7 @@ set_pref(gchar *pref_name, gchar *value, void *private_data _U_) } else { cfmt->custom_occurrence = 0; } - if (cfmt->custom_field && cust_format_info[2]) { + if (cfmt->custom_field && cust_format_info[1] && cust_format_info[2]) { cfmt->resolved = (cust_format_info[2][0] == 'U') ? FALSE : TRUE; } else { cfmt->resolved = TRUE; |