Merge "core: Ensure presencestate subtype and message are NULL."

This commit is contained in:
Joshua Colp 2016-09-22 08:45:38 -05:00 committed by Gerrit Code Review
commit 8d5219e6b8
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ static enum ast_presence_state ast_presence_state_helper(const char *presence_pr
[AST_PRESENCE_DND] = 7
};
*subtype = NULL;
*message = NULL;
while ((label = strsep(&labels, "&"))) {
enum ast_presence_state next_state = AST_PRESENCE_INVALID;
char *next_subtype = NULL;