Comparison, not set :) Thanks mvanbaak.
authorJason Parker <jparker@digium.com>
Fri, 1 Feb 2008 18:24:52 +0000 (18:24 +0000)
committerJason Parker <jparker@digium.com>
Fri, 1 Feb 2008 18:24:52 +0000 (18:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_authenticate.c

index d700741..063a171 100644 (file)
@@ -159,7 +159,7 @@ static int auth_exec(struct ast_channel *chan, void *data)
                                        continue;
 
                                len = strlen(buf) - 1;
-                               if (buf[len - 1] = '\n')
+                               if (buf[len - 1] == '\n')
                                        buf[len - 1] = '\0';
 
                                if (ast_test_flag(&flags, OPT_MULTIPLE)) {