Stop searching once we find a match
authorMark Spencer <markster@digium.com>
Sat, 31 Jan 2004 17:00:24 +0000 (17:00 +0000)
committerMark Spencer <markster@digium.com>
Sat, 31 Jan 2004 17:00:24 +0000 (17:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 4af22c2..6f05528 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -893,6 +893,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
                                                strncpy(workspace, *ret, workspacelen - 1);
                                                *ret = workspace;
                                        }
+                                       break;
                                }
                        }
                }