summaryrefslogtreecommitdiff
path: root/callerid.c
diff options
context:
space:
mode:
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);