diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/format_cap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/format_cap.c b/main/format_cap.c index 364c924bf..177652efb 100644 --- a/main/format_cap.c +++ b/main/format_cap.c @@ -319,6 +319,10 @@ int ast_format_cap_update_by_allow_disallow(struct ast_format_cap *cap, const ch int res = 0, all = 0, iter_allowing; char *parse = NULL, *this = NULL, *psize = NULL; + if (!allowing && ast_strlen_zero(list)) { + return 0; + } + parse = ast_strdupa(list); while ((this = strsep(&parse, ","))) { int framems = 0; |