This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d12ebb1f159c0aeeffa943ad8b5329607f3b934e

commit d12ebb1f159c0aeeffa943ad8b5329607f3b934e
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jul 23 02:33:51 2024 +0200

    libdpkg: Switch varbuf::reset() to use varbuf_reset()
    
    Instead of open-coding the implementation (even if it's trivial), reuse
    the C one, which we do for all other methods.
---
 lib/dpkg/varbuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpkg/varbuf.h b/lib/dpkg/varbuf.h
index 021fc1b0b..7bf716274 100644
--- a/lib/dpkg/varbuf.h
+++ b/lib/dpkg/varbuf.h
@@ -153,7 +153,7 @@ varbuf::init(size_t _size)
 inline void
 varbuf::reset()
 {
-       used = 0;
+       varbuf_reset(this);
 }
 
 inline void

-- 
Dpkg.Org's dpkg

Reply via email to