Added asserts
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ prefs_get_string(preference_t pref)
|
||||
if (!g_key_file_has_key(prefs, group, key, NULL)) {
|
||||
return def;
|
||||
}
|
||||
|
||||
|
||||
char *result = g_key_file_get_string(prefs, group, key, NULL);
|
||||
|
||||
if (result == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user