diff options
author | zuul <zuul@gerrit.asterisk.org> | 2017-01-20 16:14:39 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-01-20 16:14:39 -0600 |
commit | 8c3ec5038f84de8784fa1dad989312333164fe3f (patch) | |
tree | 803536d5cbafa3102b96c61eab73d0fb10c11b6a /res | |
parent | 7f68f69732a9bb2e7fd9ce87364301fe635adfed (diff) | |
parent | 8160474d7db9b5975172c88d27cc6c1880700831 (diff) |
Merge "res_pjsip: alloca can never fail." into 13
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip/pjsip_configuration.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c index 84dfa2264..89590689b 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -1711,9 +1711,7 @@ static int cli_endpoint_print_body(void *obj, void *arg, int flags) if (number) { print_name_len = strlen(id) + strlen(number) + 2; - if (!(print_name = alloca(print_name_len))) { - return -1; - } + print_name = ast_alloca(print_name_len); snprintf(print_name, print_name_len, "%s/%s", id, number); } |