The following commit has been merged in the master branch:
commit 6c291264fcf15f4224de0672fb4ad7c56ede5b48
Author: Guillem Jover <[email protected]>
Date: Sun Dec 4 21:13:21 2011 +0100
libdpkg: Use a variable to track the built-in arch list tail
This makes it more difficult to miss updating references to it in the
code when the built-in arch list is modified.
diff --git a/lib/dpkg/arch.c b/lib/dpkg/arch.c
index a5fbf8a..54dd5bf 100644
--- a/lib/dpkg/arch.c
+++ b/lib/dpkg/arch.c
@@ -97,6 +97,7 @@ static struct dpkg_arch arch_item_native = {
.next = &arch_item_all,
};
static struct dpkg_arch *arch_list = &arch_item_native;
+static struct dpkg_arch *arch_builtin_tail = &arch_item_any;
static struct dpkg_arch *
dpkg_arch_new(const char *name, enum dpkg_arch_type type)
@@ -200,7 +201,7 @@ dpkg_arch_get_list(void)
void
dpkg_arch_reset_list(void)
{
- arch_item_any.next = NULL;
+ arch_builtin_tail->next = NULL;
}
void
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]