From e0400fff96497d915e67d190052820d53443d98f Mon Sep 17 00:00:00 2001 From: lolilolicon Date: Thu, 29 Sep 2011 10:45:21 +0800 Subject: 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 Signed-off-by: Dave Reisner --- contrib/paccache.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3-70-g09d2