From 4a445e7f8a54bb87748495c0172f9fcdefb97b8c Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 30 Oct 2014 12:09:55 +0100 Subject: [PATCH] Fix syntax errors in repmgr.c --- repmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index d8453056..d033cec2 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1758,13 +1758,14 @@ do_witness_create(void) PQfinish(masterconn); exit(ERR_BAD_CONFIG); } + } /* check if we need to create a database */ if(runtime_options.dbname[0] && strcmp(runtime_options.dbname,"postgres")!=0 && runtime_options.localport[0]) { /* create required db */ sprintf(script, "%s/createdb -p %s -U postgres --owner=%s %s", - options.pg_bindir, runtime_options.localport,runtime_options.username runtime_options.dbname); + options.pg_bindir, runtime_options.localport,runtime_options.username, runtime_options.dbname); log_info("Create database for witness db: %s.\n", script); r = system(script);