The following commit has been merged in the master branch:
commit de314a54d0214d0aa733aba18797ee4eed006e7e
Author: Guillem Jover <[email protected]>
Date: Sat Feb 19 09:24:26 2011 +0100
dpkg: Reduce local variable scope in archivefiles()
diff --git a/src/archives.c b/src/archives.c
index 367235b..18a26fd 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -1178,12 +1178,6 @@ void archivefiles(const char *const *argv) {
const char *volatile thisarg;
const char *const *volatile argp;
jmp_buf ejbuf;
- int pi[2], nfiles, c, i, r;
- pid_t pid;
- FILE *pf;
- static struct varbuf findoutput;
- const char **arglist;
- char *p;
trigproc_install_hooks();
@@ -1197,6 +1191,13 @@ void archivefiles(const char *const *argv) {
log_message("startup archives %s", cipaction->olong);
if (f_recursive) {
+ int pi[2], nfiles, c, i, r;
+ pid_t pid;
+ FILE *pf;
+ static struct varbuf findoutput;
+ const char **arglist;
+ char *p;
+
if (!*argv)
badusage(_("--%s --recursive needs at least one path
argument"),cipaction->olong);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]