summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-06-30 16:39:20 -0500
committerDavid Teigland <teigland@redhat.com>2015-06-30 16:39:20 -0500
commit67f291e19276a4319cfb0848792e26907fcfaf9d (patch)
treee870c8e18d758f468a54fb5639274621b7cb9abb
parent4887b2ff369dfc38284d08a249fced1519cb9596 (diff)
downloadlvm2-67f291e19276a4319cfb0848792e26907fcfaf9d.tar.gz
Initialize globals to zero
-rw-r--r--lib/locking/lvmlockd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c
index 0c9368b0d..f0277eeee 100644
--- a/lib/locking/lvmlockd.c
+++ b/lib/locking/lvmlockd.c
@@ -21,9 +21,9 @@
static daemon_handle _lvmlockd;
static const char *_lvmlockd_socket = NULL;
static struct cmd_context *_lvmlockd_cmd = NULL;
-static int _use_lvmlockd; /* is 1 if command is configured to use lvmlockd */
-static int _lvmlockd_connected; /* is 1 if command is connected to lvmlockd */
-static int _lvmlockd_init_failed; /* used to suppress further warnings */
+static int _use_lvmlockd = 0; /* is 1 if command is configured to use lvmlockd */
+static int _lvmlockd_connected = 0; /* is 1 if command is connected to lvmlockd */
+static int _lvmlockd_init_failed = 0; /* used to suppress further warnings */
void lvmlockd_set_socket(const char *sock)
{