Helge Lenz wrote:
I just found this rather old posting in my inbox - sorry for not getting back to you on this earlier...
I believe the fix should look like this:
--- vdr.c 2006/04/15 11:05:49 1.257 +++ vdr.c 2006/04/15 11:29:13 @@ -1132,7 +1132,8 @@ cControl::Shutdown(); int Channel = timer ? timer->Channel()->Number() : 0; const char *File = timer ? timer->File() : ""; - Delta = Next - time(NULL); // compensates for Confirm() timeout + if (timer) + Delta = Next - time(NULL); // compensates for Confirm() timeout char *cmd; asprintf(&cmd, "%s %ld %ld %d "%s" %d", Shutdown, Next, Delta, Channel, *strescape(File, ""$"), UserShutdown); isyslog("executing '%s'", cmd);
Can you confirm this?
Klaus