Workaround crash when timestamp format is blank

Somebody else can fix the numerous assumptions elsewhere
This commit is contained in:
TingPing 2015-01-13 04:14:32 -05:00
parent 13db2011e3
commit aab243592f
1 changed files with 7 additions and 0 deletions

View File

@ -2132,6 +2132,13 @@ setup_apply (struct hexchatprefs *pr)
" menu first."),
FE_MSG_WARN | FE_MSG_MARKUP);
/* format cannot be blank, there is already a setting for this */
if (pr->hex_stamp_text_format[0] == 0)
{
pr->hex_stamp_text = 0;
strcpy (pr->hex_stamp_text_format, prefs.hex_stamp_text_format);
}
memcpy (&prefs, pr, sizeof (prefs));
#ifdef WIN32