Initialize the variable, otherwise we'll get (random) stack value if the
user hasn't provided --syslog. Reported by scan-build.
Fixes: ca8f04e8 ("tools/insmod: add syslog and verbose options")
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>
char *opts = NULL;
size_t optslen = 0;
int verbose = LOG_ERR;
- int use_syslog;
+ int use_syslog = 0;
int i, err = 0, r = 0;
const char *null_config = NULL;
unsigned int flags = 0;