]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix spool files that lack their last return
authorMark Spencer <markster@digium.com>
Fri, 1 Apr 2005 03:41:08 +0000 (03:41 +0000)
committerMark Spencer <markster@digium.com>
Fri, 1 Apr 2005 03:41:08 +0000 (03:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5332 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_spool.c

index 94f867a02c2c078873776bf927570cd9af612841..865c0ad049fa241580b96093798a941ec64400fb 100755 (executable)
@@ -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, '#'))) {