mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Merge "core: Ensure presencestate subtype and message are NULL." into 13
This commit is contained in:
@@ -151,6 +151,9 @@ static enum ast_presence_state ast_presence_state_helper(const char *presence_pr
|
|||||||
char *label = ast_strdupa(presence_provider);
|
char *label = ast_strdupa(presence_provider);
|
||||||
int res = AST_PRESENCE_INVALID;
|
int res = AST_PRESENCE_INVALID;
|
||||||
|
|
||||||
|
*subtype = NULL;
|
||||||
|
*message = NULL;
|
||||||
|
|
||||||
if (check_cache) {
|
if (check_cache) {
|
||||||
res = presence_state_cached(presence_provider, subtype, message);
|
res = presence_state_cached(presence_provider, subtype, message);
|
||||||
if (res != AST_PRESENCE_INVALID) {
|
if (res != AST_PRESENCE_INVALID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user