]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix improper initialization order for readline.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Dec 2015 21:55:23 +0000 (16:55 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Dec 2015 21:55:39 +0000 (16:55 -0500)
commitacb6c64f4a3628ea7005b3c492633a71e52c95ff
treeee413fcce2236b26b9ffcfc35a1942707cb2dccc
parente168dfef609ca336049c14f2bcc0a957707cb93c
Fix improper initialization order for readline.

Turns out we must set rl_basic_word_break_characters *before* we call
rl_initialize() the first time, because it will quietly copy that value
elsewhere --- but only on the first call.  (Love these undocumented
dependencies.)  I broke this yesterday in commit 2ec477dc8108339d;
like that commit, back-patch to all active branches.  Per report from
Pavel Stehule.
src/bin/psql/input.c