forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda5d7a7
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 parent634710d commitda5d7a7
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 | |
---|---|---|---|
| |||
1175 | 1175 |
| |
1176 | 1176 |
| |
1177 | 1177 |
| |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
1181 |
| - | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1182 | 1183 |
| |
1183 | 1184 |
| |
1184 | 1185 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1498 | 1498 |
| |
1499 | 1499 |
| |
1500 | 1500 |
| |
1501 |
| - | |
1502 |
| - | |
1503 |
| - | |
1504 |
| - | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1505 | 1506 |
| |
1506 | 1507 |
| |
1507 | 1508 |
| |
1508 | 1509 |
| |
1509 |
| - | |
| 1510 | + | |
1510 | 1511 |
| |
1511 | 1512 |
| |
1512 | 1513 |
| |
|
0 commit comments
Comments
(0)