[PATCH 14/28] Check icmap str get for clustername

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Even this check is really not needed, it's nice to have it and on fault
ensure that cluster_name is really NULL.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/totemconfig.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/exec/totemconfig.c b/exec/totemconfig.c
index 0e1e7c6..a76de88 100644
--- a/exec/totemconfig.c
+++ b/exec/totemconfig.c
@@ -485,7 +485,9 @@ extern int totem_config_read (
 
 	icmap_get_uint32("totem.netmtu", &totem_config->net_mtu);
 
-	icmap_get_string("totem.cluster_name", &cluster_name);
+	if (icmap_get_string("totem.cluster_name", &cluster_name) != CS_OK) {
+		cluster_name = NULL;
+	}
 
 	totem_config->ip_version = AF_INET;
 	if (icmap_get_string("totem.ip_version", &str) == CS_OK) {
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux