From dd82046f9a5fc6866a467b93c6077194a36a37c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20L=C3=B6we?= Date: Fri, 1 Feb 2019 14:04:32 +0100 Subject: [PATCH] Added zero port check --- dbx.c | 2 ++ 1 file changed, 2 insertions(+) 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,