mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
various files - fix some alerts raised by lgtm code analysis
This patch fixes several issues reported by the lgtm code analysis tool: https://lgtm.com/projects/g/asterisk/asterisk Not all reported issues were addressed in this patch. This patch mostly fixes confirmed reported errors, potential problematic code points, and a few other "low hanging" warnings or recommendations found in core supported modules. These include, but are not limited to the following: * innapropriate stack allocation in loops * buffer overflows * variable declaration "hiding" another variable declaration * comparisons results that are always the same * ambiguously signed bit-field members * missing header guards Change-Id: Id4a881686605d26c94ab5409bc70fcc21efacc25
This commit is contained in:
committed by
George Joseph
parent
990a91b44a
commit
bdd785d31c
@@ -665,7 +665,7 @@ static void sip_check_transport(pj_pool_t *pool, pjsip_transport_type_e transpor
|
||||
}
|
||||
|
||||
/*! \brief External resolver implementation for PJSIP */
|
||||
static pjsip_ext_resolver resolver = {
|
||||
static pjsip_ext_resolver ext_resolver = {
|
||||
.resolve = sip_resolve,
|
||||
};
|
||||
|
||||
@@ -697,7 +697,7 @@ static int sip_replace_resolver(void *data)
|
||||
pjsip_endpt_release_pool(ast_sip_get_pjsip_endpoint(), pool);
|
||||
|
||||
/* Replace the PJSIP resolver with our own implementation */
|
||||
pjsip_endpt_set_ext_resolver(ast_sip_get_pjsip_endpoint(), &resolver);
|
||||
pjsip_endpt_set_ext_resolver(ast_sip_get_pjsip_endpoint(), &ext_resolver);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user