libdpkg: Change varbuf_get_str() to return "" instead of initializing it
commitaea0858f52cb2ca100f34389d1864cd6a0fe1fb5
authorGuillem Jover <guillem@debian.org>
Thu, 20 Jul 2023 22:11:30 +0000 (21 00:11 +0200)
committerGuillem Jover <guillem@debian.org>
Sat, 27 Apr 2024 12:11:48 +0000 (27 14:11 +0200)
tree5340c4cb8ed4b2a2a0b963d74885cc97e99e6dac
parentbfecc8f132c74397eb0cd47891688067698c2c7d
libdpkg: Change varbuf_get_str() to return "" instead of initializing it

When we have a varbuf that has not been populated, growing its memory to
simply add a NUL character is a waste. Instead simply return a constant
empty string.
lib/dpkg/varbuf.c