From: Emil Williams Date: Thu, 26 Sep 2024 22:20:29 +0000 (+0000) Subject: appease warnings & TDD gods X-Git-Tag: v20240930~12^2~1 X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=db865b407ec2cdd42c7c87e1a27a0ff585c8f920;p=emil-bake.git appease warnings & TDD gods --- diff --git a/cbake.l b/cbake.l index 6796588..7f09126 100644 --- a/cbake.l +++ b/cbake.l @@ -67,7 +67,7 @@ MACROS (@BAKE|@FILENAME|@FILE|@SHORT|@ARGS|@LINE|@STOP|$@|$*|$+) void root(char * filename) { char * path, * terminator; if (!(path = realpath(filename, NULL))) { return; } - if (terminator = strrchr(path, '/')) { + if ((terminator = strrchr(path, '/'))) { *terminator = '\0'; chroot(path); } diff --git a/test.a.txt b/test.a.txt new file mode 100644 index 0000000..ca2ff7f Binary files /dev/null and b/test.a.txt differ