summaryrefslogtreecommitdiffstats
path: root/src/analyze/analyze-inspect-elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze/analyze-inspect-elf.c')
-rw-r--r--src/analyze/analyze-inspect-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze-inspect-elf.c b/src/analyze/analyze-inspect-elf.c
index 12f347de6a..0f78729c3a 100644
--- a/src/analyze/analyze-inspect-elf.c
+++ b/src/analyze/analyze-inspect-elf.c
@@ -56,7 +56,7 @@ static int analyze_elf(char **filenames, sd_json_format_flags_t json_flags) {
* metadata is parsed recursively in core files, so there might be
* multiple modules. */
if (STR_IN_SET(module_name, "elfType", "elfArchitecture")) {
- if (streq(module_name, "elfType") && streq("coredump", sd_json_variant_string(module_json)))
+ if (streq(module_name, "elfType") && streq(sd_json_variant_string(module_json), "coredump"))
coredump = true;
r = table_add_many(