From a2fa762259718ea94a43a51de09b1e1a29532650 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 11 Mar 2004 08:46:59 +0000 Subject: [PATCH] Fix editing of PostgreSQL port git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1125 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/postgresql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/cats/postgresql.c b/bacula/src/cats/postgresql.c index 12fc80b7d2..f5655946bf 100644 --- a/bacula/src/cats/postgresql.c +++ b/bacula/src/cats/postgresql.c @@ -135,6 +135,8 @@ db_open_database(JCR *jcr, B_DB *mdb) if (mdb->db_port && mdb->db_port[0]) { bsnprintf(port, sizeof(port), "%d", mdb->db_port); + } else { + port[0] = 0; } /* connect to the database */ mdb->db = PQsetdbLogin( -- 2.39.5