Avoid segfault if we call dosubst("%<foo>")

This commit is contained in:
Dianne Skoll
2025-02-01 14:50:49 -05:00
parent 3b43222585
commit f9f9552850

View File

@@ -782,6 +782,8 @@ int DoSubstFromString(char const *source, DynamicBuffer *dbuf,
if (tim == NO_TIME) tim=MinutesPastMidnight(0);
CreateParser(source, &tempP);
tempP.allownested = 0;
tempTrig.infos = NULL;
DBufInit(&tempTrig.tags);
tempTrig.typ = MSG_TYPE;
tempTime.ttime = tim;