|
|
|
|
@ -829,7 +829,7 @@ PQconndefaults(void) |
|
|
|
|
PQconninfoOption *connOptions; |
|
|
|
|
|
|
|
|
|
initPQExpBuffer(&errorBuf); |
|
|
|
|
if (PQExpBufferBroken(&errorBuf)) |
|
|
|
|
if (PQExpBufferDataBroken(errorBuf)) |
|
|
|
|
return NULL; /* out of memory already :-( */ |
|
|
|
|
connOptions = conninfo_parse("", &errorBuf, true); |
|
|
|
|
termPQExpBuffer(&errorBuf); |
|
|
|
|
@ -3967,7 +3967,7 @@ PQconninfoParse(const char *conninfo, char **errmsg) |
|
|
|
|
if (errmsg) |
|
|
|
|
*errmsg = NULL; /* default */ |
|
|
|
|
initPQExpBuffer(&errorBuf); |
|
|
|
|
if (PQExpBufferBroken(&errorBuf)) |
|
|
|
|
if (PQExpBufferDataBroken(errorBuf)) |
|
|
|
|
return NULL; /* out of memory already :-( */ |
|
|
|
|
connOptions = conninfo_parse(conninfo, &errorBuf, false); |
|
|
|
|
if (connOptions == NULL && errmsg) |
|
|
|
|
|