hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfr...@apache.org
Subject incubator-hawq git commit: HAWQ-593. Fix coverity issue of explicit NULL dereferenced
Date Tue, 29 Mar 2016 19:19:37 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 193fb0586 -> c4d22812f


HAWQ-593. Fix coverity issue of explicit NULL dereferenced

[#113027835]


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/c4d22812
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/c4d22812
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/c4d22812

Branch: refs/heads/master
Commit: c4d22812f9a39d3be1f61a08a72898bd6b02ed37
Parents: 193fb05
Author: Omer Arap and Xin Zhang <oarap@pivotal.io>
Authored: Tue Mar 29 12:07:53 2016 -0700
Committer: Omer Arap and Xin Zhang <oarap@pivotal.io>
Committed: Tue Mar 29 12:07:53 2016 -0700

----------------------------------------------------------------------
 src/backend/cdb/cdbmutate.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c4d22812/src/backend/cdb/cdbmutate.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbmutate.c b/src/backend/cdb/cdbmutate.c
index db35d73..1b57be4 100644
--- a/src/backend/cdb/cdbmutate.c
+++ b/src/backend/cdb/cdbmutate.c
@@ -2133,7 +2133,11 @@ shareinput_mutator_xslice_3(Node *node, ApplyShareInputContext *ctxt,
bool fPop)
 		ShareType stype = SHARE_NOTSHARED;
 
 		shareinput_find_sharenode(ctxt, sisc->share_id, &plan_slicemark);
-		stype = get_plan_share_type(plan_slicemark.plan);
+
+		if(plan_slicemark.plan)
+		{
+			stype = get_plan_share_type(plan_slicemark.plan);
+		}
 
 		switch(stype)
 		{


Mime
View raw message