[PATCH] Fix the O3 developer build

Volker Lendecke vl at samba.org
Fri Aug 12 11:19:57 UTC 2016


Hi!

Review appreciated!

Thanks, Volker
-------------- next part --------------
>From 4dc30bbdb4d85789335f3f37ded1bee0ebd2a43a Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 12 Aug 2016 13:18:19 +0200
Subject: [PATCH] ctdb: Fix the O3 developer build on RHEL7

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 ctdb/tools/ctdb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c
index 67ca2ea..8d9af15 100644
--- a/ctdb/tools/ctdb.c
+++ b/ctdb/tools/ctdb.c
@@ -4762,6 +4762,8 @@ static int control_scriptstatus(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
 	}
 
 	valid = false;
+	end = 0;
+
 	for (i=0; i<ARRAY_SIZE(all_events); i++) {
 		if (strcmp(event_str, all_events[i]) == 0) {
 			valid = true;
-- 
2.1.4



More information about the samba-technical mailing list