[pacman-dev] [PATCH 2/3] paccache: declare variables explicitly
lolilolicon
lolilolicon at gmail.com
Wed Sep 28 22:45:21 EDT 2011
Declare and initialize integer variables 'needsroot' and 'verbose'.
Don't use the fact that (( undefined_variable )) evaluates to 0.
Signed-off-by: lolilolicon <lolilolicon at gmail.com>
---
contrib/paccache.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/paccache.in b/contrib/paccache.in
index 7c35cf2..e5cac7d 100755
--- a/contrib/paccache.in
+++ b/contrib/paccache.in
@@ -21,7 +21,7 @@
shopt -s extglob
declare -a candidates=() cmdopts=() whitelist=() blacklist=()
-declare -i delete=0 dryrun=0 filecount=0 move=0 totalsaved=0
+declare -i delete=0 dryrun=0 filecount=0 move=0 needsroot=0 totalsaved=0 verbose=0
declare cachedir=@localstatedir@/cache/pacman/pkg delim=$'\n' keep=3 movedir= scanarch=
msg() {
--
1.7.6.4
More information about the pacman-dev
mailing list