From 4de0a2e30e8492d79cfdc3ec66d8ee1124f51070 Mon Sep 17 00:00:00 2001 From: James Golovich Date: Mon, 1 Mar 2004 20:44:48 +0000 Subject: Fix app_random.c (bug #792) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2285 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/app_random.c') diff --git a/apps/app_random.c b/apps/app_random.c index d46c1c0f6..c9f8f4788 100755 --- a/apps/app_random.c +++ b/apps/app_random.c @@ -42,7 +42,7 @@ static int random_exec(struct ast_channel *chan, void *data) int res=0; struct localuser *u; - char *s, *ts; + char *s; char *exten, *pri, *context; char *prob; int probint, priorityint; @@ -54,7 +54,7 @@ static int random_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); s = ast_strdupa((void *) data); - prob = strsep(&ts,":"); + prob = strsep(&s,":"); if ((!prob) || (sscanf(prob, "%d", &probint) != 1)) probint = 0; -- cgit v1.2.3