Skip to content
Snippets Groups Projects
Commit afb00fce authored by Russell Bryant's avatar Russell Bryant
Browse files

Use Goto instead of GotoIf when jumping over the else block (issue #4660)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 21eb11c4
No related branches found
No related tags found
No related merge requests found
......@@ -660,7 +660,7 @@ static int __build_step(const char *what, const char *name, const char *filename
if (ifskip) {
/* Skip as appropriate around else clause */
snprintf(margs, mlen, "%d", ifend);
if (ast_add_extension2(con, 0, exten, ifskip, NULL, NULL, app, strdup(margs), FREE, registrar))
if (ast_add_extension2(con, 0, exten, ifskip, NULL, NULL, "Goto", strdup(margs), FREE, registrar))
ast_log(LOG_WARNING, "Unable to add step at priority '%d' of %s '%s'\n", *pos, what, name);
}
} else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment