diff options
author | Steve Murphy <murf@digium.com> | 2007-11-12 18:44:36 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2007-11-12 18:44:36 +0000 |
commit | 98429d37b2e66daf9d813e39cf78d1936c2521c9 (patch) | |
tree | a712d5cb7c75e76cccf049e5ae6a183e4b7951fe /pbx/pbx_dundi.c | |
parent | 061e5a1674ffea6a2857384cc82a7e3bfb3c08d2 (diff) |
Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_dundi.c')
-rw-r--r-- | pbx/pbx_dundi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 2a03cb671..05748b397 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -535,6 +535,7 @@ static int get_mapping_weight(struct dundi_mapping *map) { char buf[32]; + buf[0] = 0; if (map->weightstr) { pbx_substitute_variables_helper(NULL, map->weightstr, buf, sizeof(buf) - 1); if (sscanf(buf, "%d", &map->_weight) != 1) |