Commit 785218ea authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: fix uninitialized variables in wrsBootStatusGroup.c

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent c8d4229c
......@@ -336,10 +336,10 @@ static void get_loaded_kernel_modules_status(void)
{
FILE *f;
char key[41]; /* 1 for null char */
int modules_found;
int ret;
int modules_found = 0;
int ret = 0;
int i;
int guess_index;
int guess_index = 0;
int modules_missing;
f = fopen(MODULES_FILE, "r");
......@@ -386,7 +386,7 @@ static void get_deamons_status(void)
{
FILE *f;
char key[41]; /* 1 for null char */
int ret;
int ret = 0;
int i;
int processes_wrong = 0; /* number of too many or too few processes */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment