summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-23 12:48:00 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-23 12:48:08 +0100
commit2140012535797296ae170c1d0595eacf126bc50d (patch)
tree7238165f76703d40b86e87f042313a4808754dcb
parent9c69f112de52833ea5e723c0235b8c0bcd0d85d8 (diff)
rest: set center in /repository/add
Set it to 1, ogCP and ogCLI never use this, and this REST API is never used by the old web console.
-rw-r--r--src/rest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index b479b75..51fb322 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -5400,7 +5400,9 @@ static int og_cmd_post_repository_add(json_t *element,
struct og_msg_params *params,
char *buffer_reply)
{
- struct og_repository repo = {};
+ struct og_repository repo = {
+ .center = 1, /* never used, set it to 1. */
+ };
const char *key, *msglog;
struct in_addr addr;
struct og_dbi *dbi;