diff options
author | Joshua Colp <jcolp@digium.com> | 2016-09-06 10:06:10 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-09-06 10:06:10 -0500 |
commit | fe806ba08b550d560fa215d95c27c1852ec06d08 (patch) | |
tree | 4bad8b2ac5e794dedefe5701849d9bb4f89bc7e8 /main | |
parent | d57242a16ba2507a4bffb71e8aac7c620c381e52 (diff) | |
parent | c3b965a2c03d132d9feb91928bd72b283406f948 (diff) |
Merge "format_cap.c: Fix CLI "core show channeltype Surrogate" crash."
Diffstat (limited to 'main')
-rw-r--r-- | main/format_cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/format_cap.c b/main/format_cap.c index 2b3e6cd5f..013b7bea1 100644 --- a/main/format_cap.c +++ b/main/format_cap.c @@ -703,7 +703,7 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str ast_str_set(buf, 0, "("); - if (!AST_VECTOR_SIZE(&cap->preference_order)) { + if (!cap || !AST_VECTOR_SIZE(&cap->preference_order)) { ast_str_append(buf, 0, "nothing)"); return ast_str_buffer(*buf); } |