- Notifications
You must be signed in to change notification settings - Fork5k
Commitf7a9a3d
committed
Skip trailing whitespaces when parsing integer options
strtoint(), via strtol(), would skip leading whitespaces but the samerule was not applied for trailing whitespaces, leading to aninconsistent behavior. Some tests are changed to cover more this area.Author: Michael PaquierReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/YP5Pv0d13Ct+03ve@paquier.xyz1 parent21b3aa9 commitf7a9a3d
File tree
3 files changed
+13
-3
lines changed- src
- bin
- pg_basebackup/t
- pg_dump/t
- fe_utils
3 files changed
+13
-3
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
| 92 | + | |
91 | 93 |
| |
92 | 94 |
| |
93 | 95 |
| |
94 |
| - | |
| 96 | + | |
95 | 97 |
| |
96 | 98 |
| |
97 | 99 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
104 | 105 |
| |
105 |
| - | |
| 106 | + | |
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 |
| |
62 | 69 |
| |
63 | 70 |
| |
|
0 commit comments
Comments
(0)