summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getobjformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getobjformat.c b/lib/libc/gen/getobjformat.c
index fa155a0..98e6ab0 100644
--- a/lib/libc/gen/getobjformat.c
+++ b/lib/libc/gen/getobjformat.c
@@ -99,7 +99,7 @@ getobjformat(char *buf, size_t bufsize, int *argcp, char **argv)
int found;
int len;
- found = 0;
+ found = len = 0;
while (fgets(line, sizeof line, fp) != NULL) {
if (strncmp(line, "OBJFORMAT=", 10) == 0) {
char *p = &line[10];
OpenPOWER on IntegriCloud