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

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=$?