diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 04:17:42 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-01 04:17:42 +0000 |
commit | 218ce03d0785a10a22b2403bce05e78f3ffad89e (patch) | |
tree | 41dff5ed7d25e05740405b276bc94f60b333dd36 /pbx | |
parent | 2bc25ee8526d8ee86d8c0671c01e31519744f040 (diff) |
process the last line, even if it doesn't have a newline char (bug #3919)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5334 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_spool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index fd51926b0..0c1249d06 100755 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -95,7 +95,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f) while(!feof(f)) { fgets(buf, sizeof(buf), f); lineno++; - if (!feof(f)) { + if (!ast_strlen_zero(buf)) { /* Trim comments */ c = buf; while ((c = strchr(c, '#'))) { |