[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14002 - gnunet/src/datacache
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14002 - gnunet/src/datacache |
Date: |
Tue, 21 Dec 2010 17:15:44 +0100 |
Author: grothoff
Date: 2010-12-21 17:15:44 +0100 (Tue, 21 Dec 2010)
New Revision: 14002
Modified:
gnunet/src/datacache/plugin_datacache_postgres.c
Log:
cleaner
Modified: gnunet/src/datacache/plugin_datacache_postgres.c
===================================================================
--- gnunet/src/datacache/plugin_datacache_postgres.c 2010-12-21 16:14:32 UTC
(rev 14001)
+++ gnunet/src/datacache/plugin_datacache_postgres.c 2010-12-21 16:15:44 UTC
(rev 14002)
@@ -134,11 +134,12 @@
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14002 - gnunet/src/datacache,
gnunet <=