diff options
Diffstat (limited to 'main/callerid.c')
-rw-r--r-- | main/callerid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/callerid.c b/main/callerid.c index 57119958a..0f2110c3f 100644 --- a/main/callerid.c +++ b/main/callerid.c @@ -1124,6 +1124,9 @@ static const struct ast_value_translation pres_types[] = { int ast_parse_caller_presentation(const char *data) { int index; + if (!data) { + return -1; + } for (index = 0; index < ARRAY_LEN(pres_types); ++index) { if (!strcasecmp(pres_types[index].name, data)) { |