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:53 UTC

[6/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/cb118850
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/cb118850
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/cb118850

Branch: refs/heads/master
Commit: cb11885083764000b0b07402e35dd58d20ff1556
Parents: 8866368
Author: Kenny <xi...@esgyn.cn>
Authored: Thu Jan 11 09:07:21 2018 +0000
Committer: Kenny <xi...@esgyn.cn>
Committed: Thu Jan 11 09:07:21 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/cb118850/core/sql/executor/cluster.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/cluster.cpp b/core/sql/executor/cluster.cpp
index 0b82fb1..40a44d4 100644
--- a/core/sql/executor/cluster.cpp
+++ b/core/sql/executor/cluster.cpp
@@ -2395,7 +2395,7 @@ NABoolean Cluster::checkAndSplit(ExeErrorCode * rc)
 				         rc);
   
   if ( !next_ || *rc ) {
-    * rc = EXE_NO_MEM_TO_EXEC;
+    if ( !(*rc))* rc = EXE_NO_MEM_TO_EXEC;
     return TRUE;
   }