Fix spool files that lack their last return

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-04-01 03:41:08 +00:00
parent 07b9a5e800
commit 6e764dc097

View File

@@ -97,7 +97,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, '#'))) {