comparison mcabber/mcabber/settings.c @ 1794:58d1390f28ca

Fix ignore of NULL guard retval (introduced in d80a9e32ab1a)
author Myhailo Danylenko <isbear@ukrpost.net>
date Mon, 15 Mar 2010 17:58:32 +0200
parents d80a9e32ab1a
children e6d355e50d7a
comparison
equal deleted inserted replaced
1793:c3ddb52f1055 1794:58d1390f28ca
333 333
334 void settings_set(guint type, const gchar *key, const gchar *value) 334 void settings_set(guint type, const gchar *key, const gchar *value)
335 { 335 {
336 GHashTable *hash; 336 GHashTable *hash;
337 gchar *dup_value = NULL; 337 gchar *dup_value = NULL;
338 settings_guard_t guard = NULL; 338 installed_guard_t *guard = NULL;
339 339
340 if (type == SETTINGS_TYPE_OPTION) { 340 if (type == SETTINGS_TYPE_OPTION) {
341 installed_guard_t *guard = g_hash_table_lookup(guards, key); 341 guard = g_hash_table_lookup(guards, key);
342 if (guard) 342 if (guard)
343 dup_value = guard->guard(key, value); 343 dup_value = guard->guard(key, value);
344 } 344 }
345 345
346 hash = get_hash(type); 346 hash = get_hash(type);