]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/rmmod: 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)
commitc566ae7a34aeabb1e36ec9510eee2cd8cea54d1e
tree8af3b4abdbc0d079d340d771af3e1f1f4417ae53
parent76db5422f92de96c1583f02d2f7db6b0c271fda6
tools/rmmod: 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: 24fe68dc ("tools/rmmod: make opt variables non-global")
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/rmmod.c