From: Tom Lane Date: Mon, 21 Jan 2013 04:09:35 +0000 (-0500) Subject: Fix error-checking typo in check_TSCurrentConfig(). X-Git-Tag: REL9_3_BETA1~467 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=535e69a43f14673557d281b112859e7a25cc7939;p=postgresql Fix error-checking typo in check_TSCurrentConfig(). The code failed to detect an out-of-memory failure. Xi Wang --- 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; }