From 21319003d514593953885f64ec0b43fe56379a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 24 Sep 2010 13:19:03 +0000 Subject: Added an extra validity check for cust_format_info. svn path=/trunk/; revision=34235 --- epan/prefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/prefs.c') 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; -- cgit v1.2.1