]> err.no Git - dpkg/commit
libdpkg: Remove unneeded and wrong caching of namevalue length member
authorGuillem Jover <guillem@debian.org>
Wed, 2 Jul 2008 05:45:09 +0000 (08:45 +0300)
committerGuillem Jover <guillem@debian.org>
Wed, 2 Jul 2008 06:30:24 +0000 (09:30 +0300)
commit3b0e30015c9948f13fd835f985fddd4dcc73c598
tree63b15aa97de960e011992c88c25d71a1ab6f108e
parent9274078c46b368d4bbcbfa9bd9b62d67fd0f0531
libdpkg: Remove unneeded and wrong caching of namevalue length member

All current namevalue arrays have the length member precomputed. And
the code was sneakily casting from const to non-const through a memcpy
to be able to do the cache.
ChangeLog
lib/fields.c