diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 18:44:36 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 18:44:36 +0000 |
commit | 91879350bec01432e41753f74715c608f14085fb (patch) | |
tree | a712d5cb7c75e76cccf049e5ae6a183e4b7951fe /cdr/cdr_manager.c | |
parent | cbb22ba26a195239fe78a1a438e2c2234ac6f590 (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: http://svn.digium.com/svn/asterisk/trunk@89186 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_manager.c')
-rw-r--r-- | cdr/cdr_manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c index 4fa66b560..062718039 100644 --- a/cdr/cdr_manager.c +++ b/cdr/cdr_manager.c @@ -142,6 +142,7 @@ static int manager_log(struct ast_cdr *cdr) ast_localtime(&cdr->end, &timeresult, NULL); ast_strftime(strEndTime, sizeof(strEndTime), DATE_FORMAT, &timeresult); + buf[0] = 0; /* Custom fields handling */ if (customfields != NULL && customfields->used > 0) { memset(&dummy, 0, sizeof(dummy)); |