diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-05-05 11:23:49 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-05-05 11:23:49 -0400 |
commit | 713cfaf2a576a9896fdd9b5aad51f6ebeb91a3c7 (patch) | |
tree | 423d4297f3db6ce37192ef38a40d5e4c074b8616 /src/tutorial/complex.c | |
parent | c34d7df6ad5394c790941a8a4f1a1c71573b47f9 (diff) | |
download | postgresql-713cfaf2a576a9896fdd9b5aad51f6ebeb91a3c7.tar.gz postgresql-713cfaf2a576a9896fdd9b5aad51f6ebeb91a3c7.zip |
Silence Coverity complaint about possible null-pointer dereference.
If pg_init_privs were to contain a NULL ACL field, this code would
pass old_acl == NULL to merge_acl_with_grant, which would crash.
The case shouldn't happen, but it just takes a couple more lines
of code to guard against it, so do so.
Oversight in 534287403; no back-patch needed.
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions