Fix two NULL related warnings in resource queue/groups
Passing InvalidOid to as a HeapTuple argument cause a warning for NULL pointer constant, replace InvalidOid with NULL in call to AlterResqueueCapabilityEntry() to avoid. Also initialize the owner in GetResGroupIdForRole() since we otherwise read an uninitialized value in case the CurrentResourceOwner was set.
Showing
想要评论请 注册 或 登录