projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebab595
)
Fix error-checking typo in check_TSCurrentConfig().
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 21 Jan 2013 04:09:35 +0000
(23:09 -0500)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 21 Jan 2013 04:10:18 +0000
(23:10 -0500)
The code failed to detect an out-of-memory failure.
Xi Wang
src/backend/utils/cache/ts_cache.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/cache/ts_cache.c
b/src/backend/utils/cache/ts_cache.c
index 6a6cbbf90c1758ca37b5e67b0ce81b355940f62c..93f6e5e237627dbf29a01b732c5e8374424efeea 100644
(file)
--- a/
src/backend/utils/cache/ts_cache.c
+++ b/
src/backend/utils/cache/ts_cache.c
@@
-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;
}