- Notifications
You must be signed in to change notification settings - Fork5
Commitfc7a9df
committed
Get rid of scribbling on a const variable in psql's print.c.
Commita2dabf0 had the bright idea that it could modify a "const"global variable if it merely casted away const from a pointer. This doesnot work on platforms where the compiler puts "const" variables intoread-only storage. Depressingly, we evidently have no such platforms inour buildfarm ... an oversight I have now remedied. (The one platformthat is known to catch this is recent OS X with -fno-common.)Per report from Chris Ruprecht. Back-patch to 9.5 where the boguscode was introduced.1 parent23a27b0 commitfc7a9df
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| |||
3412 | 3412 |
| |
3413 | 3413 |
| |
3414 | 3414 |
| |
3415 |
| - | |
| 3415 | + | |
3416 | 3416 |
| |
3417 | 3417 |
| |
3418 | 3418 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
| 166 | + | |
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
|
0 commit comments
Comments
(0)