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

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