re-add the initialization of the scheduled item's time to 0. I had removed
authorRussell Bryant <russell@russellbryant.com>
Fri, 5 May 2006 18:11:55 +0000 (18:11 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 5 May 2006 18:11:55 +0000 (18:11 +0000)
commit0f8ea8ddca68b6c797b35243fbe6a77ea58a2c4b
tree5f2775d425944046c9e205a035171911e422108f
parent282c5fd214f379f4775d636dc2df2666e46a958a
re-add the initialization of the scheduled item's time to 0.  I had removed
this because I checked the sched_alloc function to use calloc instead of
malloc, so I thought it was no longer necessary.  However, the sched structures
are cached, and cached values will have the old values in them, so this still
needs to be done.

Also, wrap the scheduler debug code to only happen if option_debug is enabled.
It spits out a ton of output so it's nice to be able to enable/disable it
during runtime.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
sched.c