aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-02 17:41:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-02 17:41:19 +0000
commitb9f70f0225723f4d8a29d404052318c1f95e1e1c (patch)
treedf51771069acab843403e8d156070bbb54294bda /pbx
parent896509182c7e5c82030bcad3f8d5ca17d8dbc4b3 (diff)
remove duplicate checking (bug #3927)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_spool.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 0c1249d06..fcf50c271 100755
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -92,10 +92,8 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
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 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
} 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))) {