diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-09 10:58:30 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-09 10:58:30 +0200 |
commit | 824e839071c1957344608bd031f3198dd76e551d (patch) | |
tree | cf2749f1da8e44431a0fd74d2eba762c50238743 /src | |
parent | 72cd81f502f8b609d3f551107cfc572c4e3ec7c8 (diff) | |
download | gamma-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')
-rw-r--r-- | src/pgsql.c | 2 |
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; |