mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
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:
@@ -97,7 +97,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
|
|||||||
while(!feof(f)) {
|
while(!feof(f)) {
|
||||||
fgets(buf, sizeof(buf), f);
|
fgets(buf, sizeof(buf), f);
|
||||||
lineno++;
|
lineno++;
|
||||||
if (!feof(f)) {
|
if (!ast_strlen_zero(buf)) {
|
||||||
/* Trim comments */
|
/* Trim comments */
|
||||||
c = buf;
|
c = buf;
|
||||||
while ((c = strchr(c, '#'))) {
|
while ((c = strchr(c, '#'))) {
|
||||||
|
Reference in New Issue
Block a user