aboutsummaryrefslogtreecommitdiffstats
path: root/callerid.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-21 00:42:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-21 00:42:25 +0000
commit708a7ca40ebcaac8a62cdac9eebd3326116ea1d8 (patch)
tree025deea905f3616996d9949bb02df38a4bdd19ca /callerid.c
parent8243b0f682681e4244021c772b42485e97910d8f (diff)
remove some useless checks after calls to ast_strdupa
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8362 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'callerid.c')
-rw-r--r--callerid.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/callerid.c b/callerid.c
index 0f382fcc9..333f0bac7 100644
--- a/callerid.c
+++ b/callerid.c
@@ -995,12 +995,8 @@ int ast_callerid_split(const char *buf, char *name, int namelen, char *num, int
{
char *tmp;
char *l = NULL, *n = NULL;
+
tmp = ast_strdupa(buf);
- if (!tmp) {
- name[0] = '\0';
- num[0] = '\0';
- return -1;
- }
ast_callerid_parse(tmp, &n, &l);
if (n)
ast_copy_string(name, n, namelen);