aboutsummaryrefslogtreecommitdiff
path: root/src/naming.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/naming.c')
-rw-r--r--src/naming.c2
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);
}