Commit 535e69a4 authored by Tom Lane's avatar Tom Lane

Fix error-checking typo in check_TSCurrentConfig().

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

Xi Wang
parent 693eb9df
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment