summaryrefslogtreecommitdiff
path: root/searchtimer_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'searchtimer_thread.c')
-rw-r--r--searchtimer_thread.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c
index d890bbd..eb20218 100644
--- a/searchtimer_thread.c
+++ b/searchtimer_thread.c
@@ -264,6 +264,15 @@ void cSearchTimerThread::Action(void)
if ((file = searchExt->BuildFile(pEvent)) != NULL)
{
while(strstr(file, "!^pipe^!")) file = strreplace(file, "!^pipe^!", "|"); // revert the translation of '|' in BuildFile
+ if (strstr(file, "!^invalid^!") || strlen(file) == 0)
+ {
+ LogFile.eSysLog("Skipping timer due to invalid or empty filename");
+ if (time(NULL) <= timer->StopTime())
+ pOutdatedTimers->DelTimer(timer);
+ delete timer;
+ free(file);
+ continue;
+ }
timer->SetFile(file);
free(file);
}