diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2026-02-05 15:18:09 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2026-02-05 15:26:01 +0000 |
| commit | ee44ab936e84bacaa49847d36aabdf280f9fecce (patch) | |
| tree | beb427d8f800bf869df2064ad4f3d9efc63c25ea | |
| parent | d15d6bf83de97bd1742621bc10fe2feeb503cfdd (diff) | |
diff: Fix build
rc must be defined first.
Fixes: 590126789c84
MFC after: 1 week
X-MFC with: 590126789c84
| -rw-r--r-- | usr.bin/diff/diffdir.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
