From db865b407ec2cdd42c7c87e1a27a0ff585c8f920 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Thu, 26 Sep 2024 22:20:29 +0000 Subject: [PATCH] appease warnings & TDD gods --- cbake.l | 2 +- test.a.txt | Bin 0 -> 989 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 test.a.txt 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 0000000000000000000000000000000000000000..ca2ff7fd0e9fcb2e11fa46ca29db1d391949ffdc GIT binary patch literal 989 zcmZ`&(N4lJ6!p1ZaUzMnz#=H3Bi^*QfxWM9QaV;AD-fmszR^yg*-R-%j zxA&ZecehU?M)6vr3ms0z&m)vi3woWXAPCr;e-JvVhwy$paqBIpwam0zJS`VF=7`b4 zRw|yYph;DbGcP|)1T_GC53t##I>}LOzm#(iskS^$#0p1PCYjP0O(zZJfsdzHibVx$ zL+nx{B2IS;TDT)!cu7$d30&dWy!B&UdN4uXw&ra{p8=LKL(xFK)MTe_gYHQ^we>Ho z+k}m#_qKp=_BMTCEX*}Tp<&Ny7=^RP>Fe9jq`HX<85wP;hfc@LeU8&#j@#FV+0YbO zej__E1Vx~SGGI0-0{LbI+e~fVoTJahDg{C(5V$l9(PYxP)P_FV!hKd`@5 z=cYY($V&ctZw79a3#r#eiV7tpglr=to~HYNv4cjz7cOs48h$P!W^M>JG9x>1W2^kn z(A0FfbR3GlDC21%wSpAJ*aXE*yYhD2pq69YQC`S*Qcb#Ubyrhfce`!aVQ!Gl^&$HK DTw)T) literal 0 HcmV?d00001