diff options
Diffstat (limited to 'epan/prefs.c')
-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; |