Skip to contentSkip to conversation

master - tests: bound variables

PATCH Zdenek Kabelac 1 participant 1 message Jul 13, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=870c7bc76c291aec4c475436f13328fdc0467881
Commit:        870c7bc76c291aec4c475436f13328fdc0467881
Parent:        e88534b680f52a98e72b43f5b6c1d65f158e5680
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jul 13 21:09:45 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jul 13 21:11:16 2017 +0200

tests: bound variables

---
 test/shell/lvconvert-raid-takeover.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
test/shell/lvconvert-raid-takeover.sh +2 -2
index 2fb0e5a..c8591be 100644
@@ -26,7 +26,7 @@ aux prepare_vg 8
 # FIXME: lvconvert leaks  'error' devices
 detect_error_leak_()
 {
-	local err
+	local err=""
 
 	for i in $(dmsetup info -c -o name --noheadings) ; do
 		case "$i" in
@@ -66,7 +66,7 @@ function _lvconvert
 	local stripes=$4
 	local vg=$5
 	local lv=$6
-	local region_size=$7
+	local region_size=${7-}
 	local wait_and_check=1
 	local R=""