diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-12-12 10:36:15 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-12-12 10:36:15 +0000 |
commit | 77e986e0d00adccad80eb0739a426dea935c9490 (patch) | |
tree | 8d99e4a1f483c23cc80e501473d408a90e4b8ba5 | |
parent | 1b45dc4eee935c9af9861616661285c7ea532dd4 (diff) |
properly initialize a malloc'ed buffer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c index f160813e6..083f42fc3 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2603,6 +2603,7 @@ static char *xml_translate(char *in, struct ast_variable *vars, enum output_form if (!out) return NULL; tmp = out; + *tmp = '\0'; /* we want to stop when we find an empty line */ while (in && *in) { val = strsep(&in, "\r\n"); /* mark start and end of line */ |