Silence compiler warnings
authorJoe Conway <[email protected]>
Mon, 2 Jan 2017 22:12:28 +0000 (14:12 -0800)
committerJoe Conway <[email protected]>
Mon, 2 Jan 2017 22:12:28 +0000 (14:12 -0800)
commit6b4a1764aa5dfece5020b78beb56ffde66bd1b21
treefd7307323600471fc2c271b2ee2e22cca6ad38a3
parent3f9479603caca249fb3643871c24c6fa55a339b4
Silence compiler warnings

In GetCachedPlan(), initialize 'plan' to silence a compiler warning, but
also add an Assert() to make sure we don't ever actually fall through
with 'plan' still being set to NULL, since we are about to dereference
it.

Back-patch back to 9.2.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net
src/backend/utils/cache/plancache.c