399     err_exit:
Event uninit_use_in_call: Using uninitialized value "c_handle" in call to 
function "corosync_cfg_finalize" [model]
Also see events: [var_decl]
400             corosync_cfg_finalize(c_handle);

Signed-off-by: Angus Salkeld <[email protected]>
---
  tools/corosync-quorumtool.c |    8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/corosync-quorumtool.c b/tools/corosync-quorumtool.c
index a1ee3ac..d43ae4a 100644
--- a/tools/corosync-quorumtool.c
+++ b/tools/corosync-quorumtool.c
@@ -352,7 +352,7 @@ static void show_nodes(nodeid_format_t nodeid_format, 
name_format_t name_format)
        if (using_vq) {
                if ( (err=votequorum_initialize(&v_handle, &v_callbacks)) != 
CS_OK) {
                        fprintf(stderr, "votequorum_initialize FAILED: %d, this 
is probably a configuration error\n", err);
-                       goto err_exit;
+                       return;
                }
        }

@@ -371,7 +371,7 @@ static void show_nodes(nodeid_format_t nodeid_format, 
name_format_t name_format)
        err = corosync_cfg_initialize(&c_handle, &c_callbacks);
        if (err != CS_OK) {
                fprintf(stderr, "Cannot initialise CFG service\n");
-               goto err_exit;
+               return;
        }

        if (using_vq)
@@ -394,9 +394,9 @@ static void show_nodes(nodeid_format_t nodeid_format, 
name_format_t name_format)
                }
        }

-       if (using_vq)
+       if (using_vq) {
                votequorum_finalize(v_handle);
-err_exit:
+       }
        corosync_cfg_finalize(c_handle);
  }

-- 
1.6.2.5
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to