Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #200 from jasiek/master
Browse files Browse the repository at this point in the history
If no host or port are specified, revert to libpq to determine how to…
  • Loading branch information
jpmens committed Mar 6, 2017
2 parents 7a8caca + 73fabce commit 241d17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be-postgres.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ void *be_pg_init()
pass = p_stab("pass");
dbname = p_stab("dbname");

host = (host) ? host : strdup("localhost");
port = (p) ? p : strdup("5432");
host = (host) ? host : strdup("");
port = (p) ? p : strdup("");

userquery = p_stab("userquery");

Expand Down

0 comments on commit 241d17d

Please sign in to comment.