]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/lsmod: initialize use_syslog
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 3 Oct 2024 16:02:45 +0000 (17:02 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 9 Oct 2024 04:20:31 +0000 (23:20 -0500)
commit6186b909d76a10bc836cbbd37342283e80d86cb7
tree1b60cf83e553da432f68101ed590c5737ad6a5ef
parentc566ae7a34aeabb1e36ec9510eee2cd8cea54d1e
tools/lsmod: initialize use_syslog

Initialize the variable, otherwise we'll get (random) stack value if the
user hasn't provided --syslog. Reported by scan-build.

Fixes: 6313d40d ("tools/lsmod: add basic opts like rmmod")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/172
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/lsmod.c