Added asserts

This commit is contained in:
James Booth
2013-02-03 23:46:20 +00:00
parent 3c9155be2c
commit 2cea263917
6 changed files with 17 additions and 10 deletions

View File

@@ -428,7 +428,7 @@ accounts_get_priority_for_presence_type(const char * const account_name,
result = 0;
break;
}
if (result < JABBER_PRIORITY_MIN || result > JABBER_PRIORITY_MAX)
result = 0;