aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_random.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-01 20:44:48 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-01 20:44:48 +0000
commita7dbed70c89aa8a6474b6c73e186a0134c6ef3d4 (patch)
tree3bbd20f2d71f1a10f9da0709a54648d69f01fa56 /apps/app_random.c
parent3679aa29e8eb1bc908d08eb76b6e4742085bf248 (diff)
Fix app_random.c (bug #792)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2285 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_random.c')
-rwxr-xr-xapps/app_random.c4
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;