diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:54:48 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:54:48 -0400 |
| commit | fb32f766501e089953e8cb0353e60af7bc8fc042 (patch) | |
| tree | 570a0cf993a0735f2cf8b0365a5c8e5855834411 /src/naming.c | |
| parent | 36afd7fbc7fbc5c4df041a4662cbc1da4cfc6441 (diff) | |
Fix conditional
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 e3ae7550..484e1998 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.tag != TEXT_NONE) err(1, "Could not read ID file: %s", Path$as_c_string(id_file)); + if (id.tag == TEXT_NONE) err(1, "Could not read ID file: %s", Path$as_c_string(id_file)); return Texts("$", id); } |
