diff options
author | Michal Sekletar <msekleta@redhat.com> | 2024-09-09 14:36:35 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-10-29 19:08:04 +0100 |
commit | 3ed5c6aa9b8f8eebc4eb336c835dea8286b48f34 (patch) | |
tree | 0743e2fff83544e4ba7288befad2b63ee774d687 | |
parent | analyze: modernize opening ELF binary a bit (diff) | |
download | systemd-3ed5c6aa9b8f8eebc4eb336c835dea8286b48f34.tar.xz systemd-3ed5c6aa9b8f8eebc4eb336c835dea8286b48f34.zip |
analyze: don't use Yoda conditions
-rw-r--r-- | src/analyze/analyze-inspect-elf.c | 2 |
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( |