aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_authenticate.c2
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';