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;

View File

@@ -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) {