forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ddc855
committed
libpq: Use strerror_r instead of strerror
Commit453c468 introduced a use of strerror() into libpq, but thatis not thread-safe. Fix by using strerror_r() instead.In passing, update some of the code comments added by453c468, aswe have learned more about the reason for the change in OpenSSL thatstarted this.Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion: Discussion:https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca1 parentce3045e commit6ddc855
File tree
2 files changed
+11
-9
lines changed- src
- backend/libpq
- interfaces/libpq
2 files changed
+11
-9
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1270 | 1270 |
| |
1271 | 1271 |
| |
1272 | 1272 |
| |
1273 |
| - | |
1274 |
| - | |
1275 |
| - | |
1276 |
| - | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1277 | 1278 |
| |
1278 | 1279 |
| |
1279 | 1280 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1689 | 1689 |
| |
1690 | 1690 |
| |
1691 | 1691 |
| |
1692 |
| - | |
1693 |
| - | |
1694 |
| - | |
1695 |
| - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1696 | 1697 |
| |
1697 | 1698 |
| |
1698 | 1699 |
| |
1699 | 1700 |
| |
1700 |
| - | |
| 1701 | + | |
1701 | 1702 |
| |
1702 | 1703 |
| |
1703 | 1704 |
| |
|
0 commit comments
Comments
(0)