aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-06-12 19:22:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-06-12 19:22:40 +0000
commit1918a1d1911a7e8bd6bd6c835bf127b4da741f7b (patch)
treec288ae553bd6bf4d47ae5cd57162831601afa0f1 /src/tutorial/funcs.c
parent0c3281ce7c0b66d2f6a9d06b8bd475691c37c2b5 (diff)
downloadpostgresql-1918a1d1911a7e8bd6bd6c835bf127b4da741f7b.tar.gz
postgresql-1918a1d1911a7e8bd6bd6c835bf127b4da741f7b.zip
When targetlist is NULL, ExecTargetList was passing back a
pointer to palloc'd but uninitialized memory. This is not cool; anyone looking at the returned 'tuple' would at best coredump and at worst behave in a bizarre and irreproducible way. Fix it to return a predictable value, namely a correctly-set-up palloc'd tuple containing zero attributes. I believe this fix is both safe and critical.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions