the time must be initialized for the 'n' option to actually work (bug #4834)
authorRussell Bryant <russell@russellbryant.com>
Wed, 27 Jul 2005 22:55:48 +0000 (22:55 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 27 Jul 2005 22:55:48 +0000 (22:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6238 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index b56741a..8553f6d 100755 (executable)
@@ -1882,7 +1882,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
        char *announce = NULL;
        char digit = 0;
        time_t callstart;
-       time_t now;
+       time_t now = time(NULL);
        struct ast_bridge_config bridge_config;
        char nondataquality = 1;