The following commit has been merged in the master branch:
commit 0ffb2352819de51884f80c380819a33cce9333a7
Author: Guillem Jover <[email protected]>
Date: Sun Jul 11 19:56:05 2010 +0200
u-a: Rename altlnk to sl_altlnk to not shadow altlnk from outter scope
diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index 6c4d9c2..e4c8fa3 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -1710,17 +1710,17 @@ alternative_is_broken(struct alternative *a)
}
free(sl_current);
} else {
- char *altlnk;
+ char *sl_altlnk;
/* Slave link must not exist. */
if (lstat(sl->link, &st) == 0)
return true;
- xasprintf(&altlnk, "%s/%s", altdir, sl->name);
- if (lstat(altlnk, &st) == 0) {
- free(altlnk);
+ xasprintf(&sl_altlnk, "%s/%s", altdir, sl->name);
+ if (lstat(sl_altlnk, &st) == 0) {
+ free(sl_altlnk);
return true;
}
- free(altlnk);
+ free(sl_altlnk);
}
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]