git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 23a27b0) | patch
Get rid of scribbling on a const variable in psql's print.c.
2016年3月12日 23:16:24 +0000 (18:16 -0500)
2016年3月12日 23:16:24 +0000 (18:16 -0500)
commit fc7a9dfddb073a55a226778acd6a9b3f5ea2e626
Get rid of scribbling on a const variable in psql's print.c.

Commit a2dabf0e1dda93c8 had the bright idea that it could modify a "const"
global variable if it merely casted away const from a pointer. This does
not work on platforms where the compiler puts "const" variables into
read-only storage. Depressingly, we evidently have no such platforms in
our buildfarm ... an oversight I have now remedied. (The one platform
that is known to catch this is recent OS X with -fno-common.)

Per report from Chris Ruprecht. Back-patch to 9.5 where the bogus
code was introduced.
src/bin/psql/print.c diff | blob | blame | history
src/bin/psql/print.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /