mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merge "core: Ensure presencestate subtype and message are NULL." into 14
This commit is contained in:
@@ -161,6 +161,9 @@ static enum ast_presence_state ast_presence_state_helper(const char *presence_pr
|
|||||||
[AST_PRESENCE_DND] = 7
|
[AST_PRESENCE_DND] = 7
|
||||||
};
|
};
|
||||||
|
|
||||||
|
*subtype = NULL;
|
||||||
|
*message = NULL;
|
||||||
|
|
||||||
while ((label = strsep(&labels, "&"))) {
|
while ((label = strsep(&labels, "&"))) {
|
||||||
enum ast_presence_state next_state = AST_PRESENCE_INVALID;
|
enum ast_presence_state next_state = AST_PRESENCE_INVALID;
|
||||||
char *next_subtype = NULL;
|
char *next_subtype = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user