]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: use stack strbuf for index processing
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 24 Feb 2025 18:48:05 +0000 (19:48 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 7 Mar 2025 04:57:37 +0000 (22:57 -0600)
commit5c38d457a093853be002a950c8266cc2c4839db8
treef4ad5f06ec7228fdda9bedb713dac45f48977de2
parent51929659b2faad1288bea9502cb5a672ca15abff
libkmod: use stack strbuf for index processing

The strbuf content is never returned, so it's easy to switch to a
stack-based solution. It removes heap allocations and the need to
manually call strbuf_init and strbuf_release since these are covered
through DECLARE_STRBUF_WITH_STACK as well.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/296
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-index.c