Skip to content
Snippets Groups Projects
Commit 785218ea authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/snmpd: fix uninitialized variables in wrsBootStatusGroup.c


Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent c8d4229c
Branches
Tags
No related merge requests found
...@@ -336,10 +336,10 @@ static void get_loaded_kernel_modules_status(void) ...@@ -336,10 +336,10 @@ static void get_loaded_kernel_modules_status(void)
{ {
FILE *f; FILE *f;
char key[41]; /* 1 for null char */ char key[41]; /* 1 for null char */
int modules_found; int modules_found = 0;
int ret; int ret = 0;
int i; int i;
int guess_index; int guess_index = 0;
int modules_missing; int modules_missing;
f = fopen(MODULES_FILE, "r"); f = fopen(MODULES_FILE, "r");
...@@ -386,7 +386,7 @@ static void get_deamons_status(void) ...@@ -386,7 +386,7 @@ static void get_deamons_status(void)
{ {
FILE *f; FILE *f;
char key[41]; /* 1 for null char */ char key[41]; /* 1 for null char */
int ret; int ret = 0;
int i; int i;
int processes_wrong = 0; /* number of too many or too few processes */ int processes_wrong = 0; /* number of too many or too few processes */
......
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