use proper default configuration

This commit is contained in:
Christian Grothoff 2019-06-30 17:44:58 +02:00
parent 0ade45d315
commit e9f43adb5b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 33 additions and 28 deletions

View File

@ -95,6 +95,8 @@ main (int argc,
options,
argc, argv) <= 0)
return 1;
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
cfg = GNUNET_CONFIGURATION_create ();
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@ -195,8 +197,7 @@ main (int argc,
if (0 == qs)
{
fprintf (stderr,
"Did not update auditor DB: value existed\n",
qs);
"Did not update auditor DB: value existed\n");
TALER_AUDITORDB_plugin_unload (adb);
return 4;
}

View File

@ -195,6 +195,8 @@ main (int argc,
options,
argc, argv) <= 0)
return 1;
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
cfg = GNUNET_CONFIGURATION_create ();
if (GNUNET_SYSERR ==
GNUNET_CONFIGURATION_load (cfg,

View File

@ -787,6 +787,8 @@ main (int argc,
TALER_LOG_ERROR ("Unknown mode given: '%s'\n", mode_str);
return BAD_CONFIG_FILE;
}
if (NULL == cfgfile)
cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
cfg = GNUNET_CONFIGURATION_create ();
if (GNUNET_OK !=
GNUNET_CONFIGURATION_load (cfg,