[fence-virt/f18] Fix uninitialized delay variable

Ryan McCabe rmccabe at fedoraproject.org
Fri Oct 26 00:21:39 UTC 2012


commit 2270e77618aa0a0fced7f91c528657dc31f6a360
Author: Ryan McCabe <rmccabe at redhat.com>
Date:   Thu Oct 25 20:19:58 2012 -0400

    Fix uninitialized delay variable

 Explicitly-set-delay-to-0.patch |   28 ++++++++++++++++++++++++++++
 fence-virt.spec                 |    2 ++
 2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/Explicitly-set-delay-to-0.patch b/Explicitly-set-delay-to-0.patch
new file mode 100644
index 0000000..6818dea
--- /dev/null
+++ b/Explicitly-set-delay-to-0.patch
@@ -0,0 +1,28 @@
+From 0c502aad7743ade8a6c2eeec780f36f61d312f4c Mon Sep 17 00:00:00 2001
+From: Ryan McCabe <rmccabe at redhat.com>
+Date: Wed, 17 Oct 2012 12:54:55 -0400
+Subject: [PATCH] fence-virt: Explicitly set delay to 0
+
+Explicitly set the delay argument to 0 when initializing the args
+struct.
+
+Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
+---
+ client/options.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/client/options.c b/client/options.c
+index cd975ae..40c6587 100644
+--- a/client/options.c
++++ b/client/options.c
+@@ -590,6 +590,7 @@ args_init(fence_virt_args_t *args)
+ 	args->retr_time = 20;
+ 	args->flags = 0;
+ 	args->debug = 0;
++	args->delay = 0;
+ }
+ 
+ 
+-- 
+1.7.11.7
+
diff --git a/fence-virt.spec b/fence-virt.spec
index f8cb985..444e05c 100644
--- a/fence-virt.spec
+++ b/fence-virt.spec
@@ -11,6 +11,7 @@ Patch1: add-a-delay-w-option.patch
 Patch2: Improve-fence_virt.conf-man-page-description-of-hash.patch
 Patch3: Return-failure-for-nonexistent-domains.patch
 Patch4: Fix-typo-in-fence_virt-8-man-page.patch
+Patch5: Explicitly-set-delay-to-0.patch
 
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
@@ -93,6 +94,7 @@ to track VMs across multiple hosts.
 %patch2 -p1 -b .Improve-fence_virt.conf-man-page-description-of-hash
 %patch3 -p1 -b .Return-failure-for-nonexistent-domains
 %patch4 -p1 -b .Fix-typo-in-fence_virt-8-man-page
+%patch5 -p1 -b .Explicitly-set-delay-to-0.patch
 
 
 %build


More information about the scm-commits mailing list