diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
| commit | 6583fe9b389a6b4698f9364945885e6783506886 (patch) | |
| tree | 0464456d177eab051b03f29a74218a45b301f174 /src/naming.c | |
| parent | 0cfae753aa131f949253f3fba1e3a36c2bde6ac0 (diff) | |
Convert to using more zero values for `none`
Diffstat (limited to 'src/naming.c')
| -rw-r--r-- | src/naming.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/naming.c b/src/naming.c index 08a568ac..8f18b70e 100644 --- a/src/naming.c +++ b/src/naming.c @@ -112,6 +112,6 @@ Text_t get_id_suffix(const char *filename) { } Path_t id_file = Path$child(build_dir, Texts(Path$base_name(path), Text$from_str(".id"))); OptionalText_t id = Path$read(id_file); - if (id.length < 0) err(1, "Could not read ID file: %s", id_file); + if (id.tag != TEXT_NONE) err(1, "Could not read ID file: %s", Path$as_c_string(id_file)); return Texts("$", id); } |
