Declare retval as a local variable. (trunk r8859)
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Dec 2007 23:38:00 +0000 (23:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Dec 2007 23:38:00 +0000 (23:38 -0000)
svn path=/main/branches/2.1.2/; revision=8860

bin/ebuild.sh

index c40403264c46308f0f164440193a642e421a8945..f1d42bd01a56f2befe0c40ad59525a9f79969b76 100755 (executable)
@@ -1464,6 +1464,7 @@ preprocess_ebuild_env() {
                save_ebuild_env || exit $?
                touch "${T}/environment.success" || exit $?
        ) | filter_readonly_variables > "${T}/environment.filtered"
+       local retval
        if [ -e "${T}/environment.success" ] ; then
                mv "${T}/environment.filtered" "${T}/environment"
                retval=$?