aboutsummaryrefslogtreecommitdiffstats
path: root/main/callerid.c
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-20 23:29:43 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-20 23:29:43 +0000
commit0e1abeca6b2e62a306199e3c97dbfd36c954ee1c (patch)
tree226118afc353011a53f025782e1ab371bae78c8b /main/callerid.c
parent81774113038d1ab329dc16365ff75ba69be40bcb (diff)
Merged revisions 264820 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r264820 | rmudgett | 2010-05-20 18:23:21 -0500 (Thu, 20 May 2010) | 6 lines ast_callerid_parse() had a path that left name uninitialized. Several callers of ast_callerid_parse() do not initialize the name parameter before calling thus there is the potential to use an uninitialized pointer. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264828 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/callerid.c')
-rw-r--r--main/callerid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/callerid.c b/main/callerid.c
index be82e2b0d..17d265ed1 100644
--- a/main/callerid.c
+++ b/main/callerid.c
@@ -1008,6 +1008,8 @@ int ast_callerid_parse(char *instr, char **name, char **location)
*ns = '\0';
*name = ns + 1;
ast_trim_blanks(*name);
+ } else {
+ *name = NULL;
}
} else { /* no quotes, trim off leading and trailing spaces */
*name = ast_skip_blanks(instr);