diff options
Diffstat (limited to 'tools/intel_reg_spec.c')
-rw-r--r-- | tools/intel_reg_spec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/intel_reg_spec.c b/tools/intel_reg_spec.c index 5594d707..0df69b68 100644 --- a/tools/intel_reg_spec.c +++ b/tools/intel_reg_spec.c @@ -219,8 +219,6 @@ static int parse_line(struct reg *reg, const char *line) initialized = true; } - memset(reg, 0, sizeof(*reg)); - ret = regexec(®ex, line, ARRAY_SIZE(match), match, 0); if (ret) ret = -1; @@ -267,7 +265,7 @@ static ssize_t parse_file(struct reg **regs, size_t *nregs, } while (getline(&line, &linesize, file) != -1) { - struct reg reg; + struct reg reg = {}; lineno++; |