mirror of
https://github.com/postgres/postgres.git
synced 2026-02-22 01:11:05 -05: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:
parent
ebab595579
commit
4a6232cce3
1 changed files with 1 additions and 1 deletions
2
src/backend/utils/cache/ts_cache.c
vendored
2
src/backend/utils/cache/ts_cache.c
vendored
|
|
@ -643,7 +643,7 @@ check_TSCurrentConfig(char **newval, void **extra, GucSource source)
|
|||
free(*newval);
|
||||
*newval = strdup(buf);
|
||||
pfree(buf);
|
||||
if (!newval)
|
||||
if (!*newval)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue