]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix error-checking typo in check_TSCurrentConfig().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Jan 2013 04:09:35 +0000 (23:09 -0500)
committerTom 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

index 6a6cbbf90c1758ca37b5e67b0ce81b355940f62c..93f6e5e237627dbf29a01b732c5e8374424efeea 100644 (file)
@@ -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;
        }