[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.16.2.1,1.16.2.2
russell at lists.digium.com
russell at lists.digium.com
Sat Apr 2 11:48:14 CST 2005
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv8193/pbx
Modified Files:
Tag: v1-0
pbx_spool.c
Log Message:
remove duplicate checking (bug #3927)
Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.16.2.1
retrieving revision 1.16.2.2
diff -u -d -r1.16.2.1 -r1.16.2.2
--- pbx_spool.c 1 Apr 2005 04:17:42 -0000 1.16.2.1
+++ pbx_spool.c 2 Apr 2005 17:41:19 -0000 1.16.2.2
@@ -92,10 +92,8 @@
char buf[256];
char *c, *c2;
int lineno = 0;
- while(!feof(f)) {
- fgets(buf, sizeof(buf), f);
+ while(fgets(buf, sizeof(buf), f)) {
lineno++;
- if (!ast_strlen_zero(buf)) {
/* Trim comments */
c = buf;
while ((c = strchr(c, '#'))) {
@@ -184,7 +182,6 @@
} else
ast_log(LOG_NOTICE, "Syntax error at line %d of %s\n", lineno, fn);
}
- }
}
strncpy(o->fn, fn, sizeof(o->fn) - 1);
if (ast_strlen_zero(o->tech) || ast_strlen_zero(o->dest) || (ast_strlen_zero(o->app) && ast_strlen_zero(o->exten))) {
More information about the svn-commits
mailing list