From 3ed5c6aa9b8f8eebc4eb336c835dea8286b48f34 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Mon, 9 Sep 2024 14:36:35 +0200 Subject: analyze: don't use Yoda conditions --- src/analyze/analyze-inspect-elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3