mirror of
https://github.com/kmod-project/kmod.git
synced 2026-01-29 10:54:35 +00:00
The strbuf_reserve_extra call is only left for a possible '/' addition, which only occurs before depmod_modules_search_dir recursively calls itself. By adding the slash at the start, it also simplifies depmod_modules_search_path which does not have to do this before calling depmod_modules_search_dir on its own. 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>