Skip to content

Commit

Permalink
Added zero port check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowentwickler committed Feb 1, 2019
1 parent 7ea8ef5 commit dd82046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbx.c
Expand Up @@ -174,6 +174,8 @@ dbx_init( const char * username,
int port,
int connections )
{
if (!port)
port = 5432;
dbxUri = str_printf( dbxUriFormat,
username,
password,
Expand Down

0 comments on commit dd82046

Please sign in to comment.