From: Christian Grothoff Date: Tue, 21 Dec 2010 16:15:44 +0000 (+0000) Subject: cleaner X-Git-Tag: initial-import-from-subversion-38251~19456 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=439d3cd69f7d187ac7ea6a30841175393a88a9aa;p=oweals%2Fgnunet.git cleaner --- diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 182341b98..221409ac7 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c @@ -134,11 +134,12 @@ init_connection (struct Plugin *plugin) PGresult *ret; /* Open database and precompile statements */ - conninfo = NULL; - GNUNET_CONFIGURATION_get_value_string (plugin->env->cfg, - "datacache-postgres", - "CONFIG", - &conninfo); + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_string (plugin->env->cfg, + "datacache-postgres", + "CONFIG", + &conninfo)) + conninfo = NULL; plugin->dbh = PQconnectdb (conninfo == NULL ? "" : conninfo); GNUNET_free_non_null (conninfo); if (NULL == plugin->dbh)