diff -Nuar asterisk.org/apps/app_authenticate.c asterisk/apps/app_authenticate.c --- asterisk.org/apps/app_authenticate.c 2005-07-26 13:33:11.000000000 -0400 +++ asterisk/apps/app_authenticate.c 2005-07-26 14:07:03.000000000 -0400 @@ -66,11 +66,11 @@ static int auth_exec(struct ast_channel *chan, void *data) { - int res=0; + int res = 0; int jump = 0; int retries; struct localuser *u; - char password[256]=""; + char password[256] = ""; char passwd[256]; char *opts; char *prompt; @@ -91,8 +91,9 @@ if (opts) { *opts = 0; opts++; - } else + } else { opts = ""; + } if (strchr(opts, 'j')) jump = 1; /* Start asking for password */ @@ -120,7 +121,7 @@ if (f) { char buf[256] = ""; char md5passwd[33] = ""; - char *md5secret; + char *md5secret = "\0"; while (!feof(f)) { fgets(buf, sizeof(buf), f); @@ -152,15 +153,15 @@ break; } } - } else - ast_log(LOG_WARNING, "Unable to open file '%s' for authentication: %s\n", password, strerror(errno)); + } else { + ast_log(LOG_WARNING, "Unable to open file '%s' for authentication: %s\n", password, strerror(errno)); } } } else { /* Compare against a fixed password */ if (!strcmp(passwd, password)) break; } - prompt="auth-incorrect"; + prompt = "auth-incorrect"; } if ((retries < 3) && !res) { if (strchr(opts, 'a'))