git: ee44ab936e84 - main - diff: Fix build
- Reply: Dag-Erling_Smørgrav : "Re: git: ee44ab936e84 - main - diff: Fix build"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Feb 2026 15:27:43 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=ee44ab936e84bacaa49847d36aabdf280f9fecce
commit ee44ab936e84bacaa49847d36aabdf280f9fecce
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2026-02-05 15:18:09 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-02-05 15:26:01 +0000
diff: Fix build
rc must be defined first.
Fixes: 590126789c84
MFC after: 1 week
X-MFC with: 590126789c84
---
usr.bin/diff/diffdir.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c
index bd8ef73e785a..0e9beb80e6a1 100644
--- a/usr.bin/diff/diffdir.c
+++ b/usr.bin/diff/diffdir.c
@@ -235,6 +235,8 @@ static void
diffit(struct dirent *dp, char *path1, size_t plen1, struct dirent *dp2,
char *path2, size_t plen2, int flags)
{
+ int rc;
+
flags |= D_HEADER;
strlcpy(path1 + plen1, dp->d_name, PATH_MAX - plen1);