Browse Source

defect 895
Ruppert reported that there is code that doesn't do anything but should.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@821 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 years ago
parent
commit
c2e9752a17
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/ckpt.c

+ 3 - 1
lib/ckpt.c

@@ -816,7 +816,9 @@ saCkptCheckpointClose (
 	error = saRecvRetry (ckptCheckpointInstance->response_fd, &res_lib_ckpt_checkpointclose,
 	error = saRecvRetry (ckptCheckpointInstance->response_fd, &res_lib_ckpt_checkpointclose,
 		sizeof (struct res_lib_ckpt_checkpointclose), MSG_WAITALL | MSG_NOSIGNAL);
 		sizeof (struct res_lib_ckpt_checkpointclose), MSG_WAITALL | MSG_NOSIGNAL);
 
 
-	error == SA_AIS_OK ? res_lib_ckpt_checkpointclose.header.error : error;
+	if (error == SA_AIS_OK) {
+		error = res_lib_ckpt_checkpointclose.header.error;
+	}
 
 
 	if (error == SA_AIS_OK) {
 	if (error == SA_AIS_OK) {
 		ckptCheckpointInstanceFinalize (ckptCheckpointInstance);
 		ckptCheckpointInstanceFinalize (ckptCheckpointInstance);