diff tools/lib64util.c @ 2602:a4f6584edca9

Hopefully improve the use-cases for 64vw "-l" option by also listing files that are not recognized.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 19 Nov 2023 20:02:03 +0200
parents 9807ae37ad69
children
line wrap: on
line diff
--- a/tools/lib64util.c	Sun Nov 19 15:43:31 2023 +0200
+++ b/tools/lib64util.c	Sun Nov 19 20:02:03 2023 +0200
@@ -133,12 +133,10 @@
 {
     char typeStr[64];
 
-    if (fmt != NULL)
-    {
-        dmC64ImageDumpLine(fh, indent,
-            "Format", "%s [%s]",
-            fmt->name, fmt->fext);
-    }
+    dmC64ImageDumpLine(fh, indent,
+        "Format", "%s [%s]",
+        fmt != NULL ? fmt->name : "UNKNOWN",
+        fmt != NULL ? fmt->fext : "???");
 
     if (img != NULL)
     {