[Asterisk-cvs] asterisk/apps app_random.c,1.1,1.1.2.1
citats at lists.digium.com
citats at lists.digium.com
Mon Mar 1 15:55:06 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv12477/apps
Modified Files:
Tag: v1-0_stable
app_random.c
Log Message:
Fix app_random.c (bug #792)
Index: app_random.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_random.c,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- app_random.c 12 Jan 2004 01:56:38 -0000 1.1
+++ app_random.c 1 Mar 2004 20:45:23 -0000 1.1.2.1
@@ -42,7 +42,7 @@
int res=0;
struct localuser *u;
- char *s, *ts;
+ char *s;
char *exten, *pri, *context;
char *prob;
int probint, priorityint;
@@ -54,7 +54,7 @@
LOCAL_USER_ADD(u);
s = ast_strdupa((void *) data);
- prob = strsep(&ts,":");
+ prob = strsep(&s,":");
if ((!prob) || (sscanf(prob, "%d", &probint) != 1))
probint = 0;
More information about the svn-commits
mailing list