Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorlolilolicon <lolilolicon@gmail.com>2011-09-29 10:45:21 +0800
committerDan McGee <dan@archlinux.org>2011-09-30 10:48:43 -0500
commite0400fff96497d915e67d190052820d53443d98f (patch)
treee9341e270121fa6ea3e8170b40ee7f98ba12dd3b /contrib
parent938fb2c87859cf495ac72d678d4edb9f6c3217c2 (diff)
paccache: declare variables explicitly
Declare and initialize integer variables 'needsroot' and 'verbose'. Don't use the fact that (( undefined_variable )) evaluates to 0. Signed-off-by: lolilolicon <lolilolicon@gmail.com> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/paccache.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/paccache.in b/contrib/paccache.in
index 7c35cf28..e5cac7de 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() {