diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-09 15:57:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-09 15:57:39 +0100 |
commit | 8f375b3ea7d53dab21a74b6e08b378bcaab69187 (patch) | |
tree | 7756eab549741765e82640161f94fe8b79f89450 /src/pq/pq_connect.c | |
parent | 3039adb9578b01b3649c5c8ae5f4d6d8f8a7d51d (diff) | |
download | gnunet-8f375b3ea7d53dab21a74b6e08b378bcaab69187.tar.gz gnunet-8f375b3ea7d53dab21a74b6e08b378bcaab69187.zip |
use NULL value in load_path_suffix to NOT load any files
Diffstat (limited to 'src/pq/pq_connect.c')
-rw-r--r-- | src/pq/pq_connect.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c index cc064f48d..6875e9866 100644 --- a/src/pq/pq_connect.c +++ b/src/pq/pq_connect.c | |||
@@ -317,11 +317,12 @@ GNUNET_PQ_connect_with_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
317 | conninfo = NULL; | 317 | conninfo = NULL; |
318 | load_path = NULL; | 318 | load_path = NULL; |
319 | sp = NULL; | 319 | sp = NULL; |
320 | if (GNUNET_OK == | 320 | if ( (NULL != load_path_suffix) && |
321 | GNUNET_CONFIGURATION_get_value_filename (cfg, | 321 | (GNUNET_OK == |
322 | section, | 322 | GNUNET_CONFIGURATION_get_value_filename (cfg, |
323 | "SQL_DIR", | 323 | section, |
324 | &sp)) | 324 | "SQL_DIR", |
325 | &sp)) ) | ||
325 | GNUNET_asprintf (&load_path, | 326 | GNUNET_asprintf (&load_path, |
326 | "%s%s", | 327 | "%s%s", |
327 | sp, | 328 | sp, |