Merge "core: Fix segfault when invoking 'data get' CLI command" into 13

This commit is contained in:
Jenkins2
2017-07-05 18:29:28 -05:00
committed by Gerrit Code Review

View File

@@ -3145,6 +3145,10 @@ int ast_data_add_codecs(struct ast_data *root, const char *node_name, struct ast
return -1;
}
if (!cap) {
return 0;
}
count = ast_format_cap_count(cap);
for (i = 0; i < count; ++i) {
struct ast_format *fmt;