From 535e69a43f14673557d281b112859e7a25cc7939 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 20 Jan 2013 23:09:35 -0500 Subject: [PATCH] Fix error-checking typo in check_TSCurrentConfig(). The code failed to detect an out-of-memory failure. Xi Wang --- src/backend/utils/cache/ts_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c index e688b1a668..65a8ad7be1 100644 --- a/src/backend/utils/cache/ts_cache.c +++ b/src/backend/utils/cache/ts_cache.c @@ -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; } -- 2.40.0