get_mp function cleanup

Resolves: bz816862

Make the variables in get_mp() local, otherwise they are global

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-04-27 16:29:18 +08:00
parent de42bcce80
commit 0e9fbaf139

View File

@ -36,6 +36,7 @@ add_dump_code()
get_mp()
{
local _mp
local dev mp fs opts rest
while read dev mp fs opts rest; do
if [ "$dev" = "$1" ]; then
_mp="$mp"