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>
const char *null_config = NULL;
struct kmod_list *list, *itr;
int verbose = LOG_ERR;
- int use_syslog;
+ int use_syslog = 0;
int err, r = 0;
for (;;) {