forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda87dc0
committed
Add missing pointer dereference in pg_backend_memory_contexts view
32d3ed8 moved the logic for setting the context's name and ident intoa reusable function. I missed adding a pointer dereference aftercopying and pasting the code into that function. The ident parameter isa pointer to the ident variable in the calling function, so thedereference is required to correctly determine if the contents of thatvariable is NULL or not.In passing, adjust the if condition to include an == NULL to make itmore clear that it's not checking for == '\0'.Reported-by: Tom Lane, CoverityDiscussion:https://postgr.es/m/2256588.1722184287@sss.pgh.pa.us1 parentc0ef123 commitda87dc0
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
|
0 commit comments
Comments
(0)