mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merge "core: Fix segfault when invoking 'data get' CLI command" into 13
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user