The following commit has been merged in the master branch:
commit c58fa9fa3353bb9a1807c06898e8f55b98f0a8a1
Author: Guillem Jover <[email protected]>
Date: Mon Feb 8 03:20:41 2010 +0100
dpkg: Reduce scope of status variable to avoid shadowing another one
diff --git a/src/processarc.c b/src/processarc.c
index 8417f45..f9a5958 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -95,7 +95,7 @@ void process_archive(const char *filename) {
static struct varbuf infofnvb, fnvb, depprobwhy;
static struct tarcontext tc;
- int c1, r, admindirlen, i, infodirlen, infodirbaseused, status;
+ int c1, r, admindirlen, i, infodirlen, infodirbaseused;
struct pkgiterator *it;
struct pkginfo *pkg, *otherpkg, *divpkg;
char *cidir, *cidirrest, *p;
@@ -125,6 +125,8 @@ void process_archive(const char *filename) {
if (stat(filename,&stab)) ohshite(_("cannot access archive"));
if (!f_noact) {
+ int status;
+
/* We can't `tentatively-reassemble' packages. */
if (!reasmbuf) {
reasmbuf= m_malloc(admindirlen+sizeof(REASSEMBLETMP)+5);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]