Don't execute a gosub if the arguments is zero-len (not just NULL)

Reported by davevg
Fixed by me
Closes issue #10985


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-10-15 20:29:35 +00:00
parent d47ebb492f
commit 47b21bae6e

View File

@@ -138,10 +138,10 @@ static int gosubif_exec(struct ast_channel *chan, void *data)
label2 = args;
if (pbx_checkcondition(condition)) {
if (label1) {
if (!ast_strlen_zero(label1)) {
res = gosub_exec(chan, label1);
}
} else if (label2) {
} else if (!ast_strlen_zero(label2)) {
res = gosub_exec(chan, label2);
}