forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc530168
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 parent1091f8e commitc530168
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 | |
---|---|---|---|
| |||
1379 | 1379 |
| |
1380 | 1380 |
| |
1381 | 1381 |
| |
1382 |
| - | |
1383 |
| - | |
1384 |
| - | |
1385 |
| - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
1386 | 1387 |
| |
1387 | 1388 |
| |
1388 | 1389 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1707 | 1707 |
| |
1708 | 1708 |
| |
1709 | 1709 |
| |
1710 |
| - | |
1711 |
| - | |
1712 |
| - | |
1713 |
| - | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1714 | 1715 |
| |
1715 | 1716 |
| |
1716 | 1717 |
| |
1717 | 1718 |
| |
1718 |
| - | |
| 1719 | + | |
1719 | 1720 |
| |
1720 | 1721 |
| |
1721 | 1722 |
| |
|
0 commit comments
Comments
(0)