]> granicus.if.org Git - postgresql/commit
Fix possible NULL dereference in ExecAlterObjectDependsStmt
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 10 Apr 2016 14:03:35 +0000 (11:03 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 10 Apr 2016 14:03:35 +0000 (11:03 -0300)
commitbd905a0d0416628b4aef153463c1f5e5b80b3e96
tree1cbc6be00e27cf8fa254b2b93b2201e69e56ac3b
parent660d5fb856c61df2de2cedb26249404ffc58cb89
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
src/backend/commands/alter.c