pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt
pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt
От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
Fix possible NULL dereference in ExecAlterObjectDependsStmt I used the wrong variable here. Doesn't make a difference today because the only plausible caller passes a non-NULL variable, but someday it will be wrong, and even today's correctness is subtle: the caller that does pass a NULL is never invoked because of object type constraints. Surely not a condition to rely on. Noted by Coverity Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/bd905a0d0416628b4aef153463c1f5e5b80b3e96 Modified Files -------------- src/backend/commands/alter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)