Skip to contentSkip to conversation

master - cleanup: clvmd skip reset of null pointer

PATCH Zdenek Kabelac 1 participant 1 message Mar 21, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7d49c33ffc41d58bd17ab032df23ca1a08f017b9
Commit:        7d49c33ffc41d58bd17ab032df23ca1a08f017b9
Parent:        bf19c6be2c57c43ebc6c7ceb85fd7487c7e36799
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Mar 19 23:37:47 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Mar 21 22:29:25 2014 +0100

cleanup: clvmd skip reset of null pointer

---
 daemons/clvmd/lvm-functions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/clvmd/lvm-functions.c +1 -1
index fb3a95c..e523522 100644
@@ -917,6 +917,6 @@ void destroy_lvm(void)
 	if (cmd) {
 		memlock_dec_daemon(cmd);
 		destroy_toolcontext(cmd);
+		cmd = NULL;
 	}
-	cmd = NULL;
 }