diff --git a/dbx.c b/dbx.c index 408ee19..c8b5c3f 100644 --- a/dbx.c +++ b/dbx.c @@ -174,6 +174,8 @@ dbx_init( const char * username, int port, int connections ) { + if (!port) + port = 5432; dbxUri = str_printf( dbxUriFormat, username, password,