add sanity check on parse_status_hl2()

dt is initialized with -1, and it's not so obvious that it will be always overwritten later.
This commit is contained in:
SHIRAKATA Kentaro
2025-01-12 15:43:46 +09:00
parent d2aff9a9b2
commit 88a571fab8

View File

@@ -2830,6 +2830,7 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile)
else
hilite.behavior = BL_TH_NONE;
assert(dt >= 0);
hilite.anytype = dt;
if (hilite.behavior == BL_TH_TEXTMATCH && txt) {