]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Use memdup
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 27 Sep 2024 20:15:59 +0000 (22:15 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 1 Oct 2024 14:12:13 +0000 (09:12 -0500)
commit568e9516fc3853a7abe860f29ef056663e1bbe24
tree0e0bcd0060af5c5284663d888172861112403dd1
parent806c3045c6ea0765a7aa35b17ef4727e644aba91
depmod: Use memdup

No need to clear newly allocated memory if source is copied into
destination directly.

Simplify code by using memdup from shared.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/158
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c