Content-Length: 257342 | pFad | http://github.com/postgrespro/postgres_cluster/commit/535e69a43f14673557d281b112859e7a25cc7939

6B Fix error-checking typo in check_TSCurrentConfig(). · postgrespro/postgres_cluster@535e69a · GitHub
Skip to content

Commit 535e69a

Browse files
committed
Fix error-checking typo in check_TSCurrentConfig().
The code failed to detect an out-of-memory failure. Xi Wang
1 parent 693eb9d commit 535e69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/cache/ts_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ check_TSCurrentConfig(char **newval, void **extra, GucSource source)
642642
free(*newval);
643643
*newval = strdup(buf);
644644
pfree(buf);
645-
if (!newval)
645+
if (!*newval)
646646
return false;
647647
}
648648

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/535e69a43f14673557d281b112859e7a25cc7939

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy