Add missing NULL terminator to list_SECURITY_LABEL_preposition[].
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 15:31:22 +0000 (11:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 15:31:22 +0000 (11:31 -0400)
commit1bee54e5143f4925297954690c56920d720b7078
tree25c84a2a91d3d7ce13d45dd444dab2f5929ffeee
parentaa9c4e71ceccf239a268b0b6611a9260d0f94a74
Add missing NULL terminator to list_SECURITY_LABEL_preposition[].

On the machines I tried this on, pressing TAB after SECURITY LABEL led to
being offered ON and FOR as intended, plus random other keywords (varying
across machines).  But if you were a bit more unlucky you'd get a crash,
as reported by nummervet@mail.ru in bug #14019.

Seems to have been an aboriginal error in the SECURITY LABEL patch,
commit 4d355a8336e0f226.  Hence, back-patch to all supported versions.
There's no bug in HEAD, though, thanks to our recent tab-completion
rewrite.
src/bin/psql/tab-complete.c