forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitac50f84
committed
Fix misuse of TextDatumGetCString().
"TextDatumGetCString(PG_GETARG_TEXT_P(x))" is formally wrong: a text*is not a Datum. Although this coding will accidentally fail to fail onall known platforms, it risks leaking memory if a detoast step is needed,unlike "TextDatumGetCString(PG_GETARG_DATUM(x))" which is what's usedelsewhere. Make pg_get_object_address() fall in line with other uses.Noted while reviewing two-arg current_setting() patch.1 parent10fb48d commitac50f84
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1831 | 1831 |
| |
1832 | 1832 |
| |
1833 | 1833 |
| |
1834 |
| - | |
| 1834 | + | |
1835 | 1835 |
| |
1836 | 1836 |
| |
1837 | 1837 |
| |
|
0 commit comments
Comments
(0)