summaryrefslogtreecommitdiffabout
path: root/src/pgsql.c
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-09 08:58:30 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-03-09 08:58:30 (GMT)
commit824e839071c1957344608bd031f3198dd76e551d (patch) (side-by-side diff)
treecf2749f1da8e44431a0fd74d2eba762c50238743 /src/pgsql.c
parent72cd81f502f8b609d3f551107cfc572c4e3ec7c8 (diff)
downloadgamma-824e839071c1957344608bd031f3198dd76e551d.tar.gz
gamma-824e839071c1957344608bd031f3198dd76e551d.tar.bz2
Bugfixes.
* modules/sql: add $(SQLLIBS) to libraries. * src/pgsql.c (s_pgsql_connect): Correctly handle NULL port value.
Diffstat (limited to 'src/pgsql.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pgsql.c b/src/pgsql.c
index 609fedb..2422551 100644
--- a/src/pgsql.c
+++ b/src/pgsql.c
@@ -80,7 +80,7 @@ s_pgsql_connect (SCM parmlist, const char *func_name)
smob = sql_connect_create("pgsql");
conn = (struct sql_connect *)SCM_CDR(smob);
conn->hostname = hostname;
- conn->port = atoi (port);
+ conn->port = port ? atoi (port) : 0;
conn->username = user;
conn->database = dbname;
conn->data = pgconn;

Return to:

Send suggestions and report system problems to the System administrator.