You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by su...@apache.org on 2018/01/22 15:56:55 UTC

[8/9] trafodion git commit: fix the nullpointer error scanned by TScanCode. modify as review

fix the nullpointer error scanned by TScanCode. modify as review


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/1942ea32
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/1942ea32
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/1942ea32

Branch: refs/heads/master
Commit: 1942ea3231f5ee74358781f2b0d5c8a19d0e0cd7
Parents: fbcd84b
Author: Kenny <xi...@esgyn.cn>
Authored: Fri Jan 12 17:03:06 2018 +0000
Committer: Kenny <xi...@esgyn.cn>
Committed: Fri Jan 12 17:03:06 2018 +0000

----------------------------------------------------------------------
 core/sql/executor/cluster.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/1942ea32/core/sql/executor/cluster.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/cluster.cpp b/core/sql/executor/cluster.cpp
index 1c9ed43..f9ceb86 100644
--- a/core/sql/executor/cluster.cpp
+++ b/core/sql/executor/cluster.cpp
@@ -2394,7 +2394,7 @@ NABoolean Cluster::checkAndSplit(ExeErrorCode * rc)
 			        	 next_,
 				         rc);
   
-  if ( !next_ || *rc ) {
+  if ( !next_ || (*rc != EXE_OK) ) {
     if (EXE_OK == *rc) *rc = EXE_NO_MEM_TO_EXEC;
     return TRUE;
   }