Fix error-checking typo in check_TSCurrentConfig().

The code failed to detect an out-of-memory failure.

Xi Wang
REL9_1_STABLE
Tom Lane 13 years ago
parent ebab595579
commit 4a6232cce3
  1. 2
      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;
}

Loading…
Cancel
Save