From 71d65c671ddabc9216896798fa8029078f490f6e Mon Sep 17 00:00:00 2001 From: npwoods Date: Mon, 7 Sep 2020 10:59:37 -0400 Subject: Fixing an Imgtool build issue with LLVM on MSVC --- src/tools/imgtool/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/imgtool/main.cpp b/src/tools/imgtool/main.cpp index d289bd01ff3..55f37284d3c 100644 --- a/src/tools/imgtool/main.cpp +++ b/src/tools/imgtool/main.cpp @@ -266,10 +266,10 @@ static int cmd_dir(const struct command *c, int argc, char *argv[]) columnwidth_attributes, wstring_from_utf8(ent.attr), columnwidth_lastmodified, wstring_from_utf8(last_modified)); - if (ent.softlink && ent.softlink[0] != '\0') + if (ent.softlink[0] != '\0') util::stream_format(std::wcout, L"-> %s\n", wstring_from_utf8(ent.softlink)); - if (ent.comment && ent.comment[0] != '\0') + if (ent.comment[0] != '\0') util::stream_format(std::wcout, L": %s\n", wstring_from_utf8(ent.comment)); total_count++; -- cgit v1.2.3