]> granicus.if.org Git - postgresql/blobdiff - src/interfaces/libpq/fe-connect.c
libpq: have PQconnectdbParams() and PQpingParams accept "" as default
[postgresql] / src / interfaces / libpq / fe-connect.c
index 3909367be6fc94ed446e7a9ef62374877ffc3f09..0791774af780abd2fdcd29958a4a77431edd4b31 100644 (file)
@@ -4357,7 +4357,7 @@ conninfo_array_parse(const char *const * keywords, const char *const * values,
                const char *pname = keywords[i];
                const char *pvalue = values[i];
 
-               if (pvalue != NULL)
+               if (pvalue != NULL && pvalue[0] != '\0')
                {
                        /* Search for the param record */
                        for (option = options; option->keyword != NULL; option++)