aboutsummaryrefslogtreecommitdiffstats
path: root/callerid.c
diff options
context:
space:
mode:
Diffstat (limited to 'callerid.c')
-rwxr-xr-xcallerid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/callerid.c b/callerid.c
index d5f94ee30..19d0d4b6e 100755
--- a/callerid.c
+++ b/callerid.c
@@ -706,9 +706,12 @@ int ast_callerid_split(const char *buf, char *name, int namelen, char *num, int
ast_callerid_parse(tmp, &n, &l);
if (n)
strncpy(name, n, namelen - 1);
+ else
+ name[0] = '\0';
if (l) {
ast_shrink_phone_number(l);
strncpy(num, l, numlen - 1);
- }
+ } else
+ num[0] = '\0';
return 0;
}