summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-21 07:15:33 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-21 07:15:33 +0000
commit9d0376223484887e6aa5ca1180568f9cb83249e9 (patch)
tree01eaf255c314669a29b76b0509bc43906fa1ca71
parent2e822610660c8578ac61bf4da2d68489facc2033 (diff)
downloadportage-9d0376223484887e6aa5ca1180568f9cb83249e9.tar.gz
portage-9d0376223484887e6aa5ca1180568f9cb83249e9.tar.bz2
portage-9d0376223484887e6aa5ca1180568f9cb83249e9.zip
Use ret|=1 instead of ++ret, to avoid possible overflow.
svn path=/main/trunk/; revision=13383
-rw-r--r--bin/ebuild-helpers/3/dodoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/3/dodoc b/bin/ebuild-helpers/3/dodoc
index f8aeaf763..4e7c934ab 100644
--- a/bin/ebuild-helpers/3/dodoc
+++ b/bin/ebuild-helpers/3/dodoc
@@ -42,7 +42,7 @@ for x in "$@" ; do
elif [ ! -e "${x}" ] ; then
echo "!!! ${0##*/}: $x does not exist" 1>&2
- ((++ret))
+ ((ret|=1))
fi
done