From: James Golovich Date: Mon, 1 Mar 2004 20:44:48 +0000 (+0000) Subject: Fix app_random.c (bug #792) X-Git-Tag: 1.0.0-rc1~1021 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4de0a2e30e8492d79cfdc3ec66d8ee1124f51070;p=thirdparty%2Fasterisk.git Fix app_random.c (bug #792) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2285 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_random.c b/apps/app_random.c index d46c1c0f6f..c9f8f47887 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;