1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Fix error-checking typo in check_TSCurrentConfig().

The code failed to detect an out-of-memory failure.

Xi Wang
This commit is contained in:
Tom Lane
2013-01-20 23:09:35 -05:00
parent ebab595579
commit 4a6232cce3

View File

@ -643,7 +643,7 @@ check_TSCurrentConfig(char **newval, void **extra, GucSource source)
free(*newval); free(*newval);
*newval = strdup(buf); *newval = strdup(buf);
pfree(buf); pfree(buf);
if (!newval) if (!*newval)
return false; return false;
} }