diff options
author | James Golovich <james@gnuinter.net> | 2004-03-01 20:44:48 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-03-01 20:44:48 +0000 |
commit | 4de0a2e30e8492d79cfdc3ec66d8ee1124f51070 (patch) | |
tree | 3bbd20f2d71f1a10f9da0709a54648d69f01fa56 /apps/app_random.c | |
parent | 32a11a2b20456ce549cae7b2a86f9ae9f9f8d69b (diff) |
Fix app_random.c (bug #792)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_random.c')
-rwxr-xr-x | apps/app_random.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |