From: Kern Sibbald Date: Thu, 11 Mar 2004 08:46:59 +0000 (+0000) Subject: Fix editing of PostgreSQL port X-Git-Tag: Release-1.34.0~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2fa762259718ea94a43a51de09b1e1a29532650;p=bacula%2Fbacula Fix editing of PostgreSQL port git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1125 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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(