Skip to content
Snippets Groups Projects
Commit fe806ba0 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "format_cap.c: Fix CLI "core show channeltype Surrogate" crash."

parents d57242a1 c3b965a2
No related tags found
No related merge requests found
...@@ -703,7 +703,7 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str ...@@ -703,7 +703,7 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str
ast_str_set(buf, 0, "("); 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)"); ast_str_append(buf, 0, "nothing)");
return ast_str_buffer(*buf); return ast_str_buffer(*buf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment