forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44096f1
committed
Fix portability breakage in pg_dump.
Commit0eea804 introduced some overlyoptimistic assumptions about what could be in a local struct variable'sinitializer. (This might in fact be valid code according to C99, but I'vegot at least one pre-C99 compiler that falls over on those nonconstantaddress expressions.) There is no reason whatsoever for main()'s workspaceto not be static, so revert long_options[] to a static and make theDumpOptions struct static as well.1 parent8883bae commit44096f1
3 files changed
+91
-84
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
| 272 | + | |
272 | 273 |
| |
273 | 274 |
| |
274 | 275 |
| |
|
Lines changed: 12 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
| 112 | + | |
116 | 113 |
| |
117 | 114 |
| |
118 | 115 |
| |
119 | 116 |
| |
120 |
| - | |
| 117 | + | |
121 | 118 |
| |
122 |
| - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
123 | 122 |
| |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
124 | 130 |
| |
125 | 131 |
| |
126 | 132 |
| |
127 |
| - | |
128 |
| - | |
129 | 133 |
| |
130 | 134 |
| |
131 | 135 |
| |
|
0 commit comments
Comments
(0)