projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a11a2
)
Fix app_random.c (bug #792)
author
James Golovich
<james@gnuinter.net>
Mon, 1 Mar 2004 20:44:48 +0000
(20:44 +0000)
committer
James Golovich
<james@gnuinter.net>
Mon, 1 Mar 2004 20:44:48 +0000
(20:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2285
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_random.c
patch
|
blob
|
history
diff --git
a/apps/app_random.c
b/apps/app_random.c
index
d46c1c0
..
c9f8f47
100755
(executable)
--- 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;