diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-01 17:41:40 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-01 17:41:40 +0000 |
commit | f8e52e4a318b33c0f93237d8466ed6e7beda84d3 (patch) | |
tree | 0632e07e715f54a26d9a69cde9e780dea3f12c9d /apps/app_authenticate.c | |
parent | b38bb3ca191bbeb92ddc4d190b1899cd7096292f (diff) |
Remove a needless (and incorrect) call to feof() after fgets().
This would have exited the loop early if you had an authentication file with no newline at the end.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@101822 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_authenticate.c')
-rw-r--r-- | apps/app_authenticate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index b6ccffce5..56f53b8ad 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -168,7 +168,7 @@ static int auth_exec(struct ast_channel *chan, void *data) while (!feof(f)) { fgets(buf, sizeof(buf), f); - if (!feof(f) && !ast_strlen_zero(buf)) { + if (!ast_strlen_zero(buf)) { size_t len = strlen(buf); if (buf[len - 1] == '\n') buf[len - 1] = '\0'; |