- Notifications
You must be signed in to change notification settings - Fork5
Commit1598dc1
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 parentc84c87c commit1598dc1
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 |
| |
| |||
3410 | 3410 |
| |
3411 | 3411 |
| |
3412 | 3412 |
| |
3413 |
| - | |
| 3413 | + | |
3414 | 3414 |
| |
3415 | 3415 |
| |
3416 | 3416 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
|
0 commit comments
Comments
(0)