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 693eb9dfd9
commit 535e69a43f

View File

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