From 2140012535797296ae170c1d0595eacf126bc50d Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 23 Nov 2023 12:48:00 +0100 Subject: 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. --- src/rest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-18-g5258