diff options
author | James Booth <boothj5@gmail.com> | 2013-02-03 23:46:20 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-02-03 23:46:20 +0000 |
commit | 2cea2639174d37f3bfe430b204734773bfeb1512 (patch) | |
tree | 2a060d331cbee2dbfbefd59023f654b7ddf581b0 /src/config | |
parent | 3c9155be2c3fb7e2fab00335ac33791822ba9d18 (diff) | |
download | profani-tty-2cea2639174d37f3bfe430b204734773bfeb1512.tar.gz |
Added asserts
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/accounts.c | 2 | ||||
-rw-r--r-- | src/config/preferences.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c index c51e01f5..e21fe1ad 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -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; diff --git a/src/config/preferences.c b/src/config/preferences.c index 276e0841..0371ead3 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -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) { |