summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.c')
-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;