git: 1be90fcda220 - main - libc: fnmatch: Unwrap comma operator assignments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Apr 2025 12:09:55 UTC
The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=1be90fcda2203acde4e639cd5a4614cfecb65496 commit 1be90fcda2203acde4e639cd5a4614cfecb65496 Author: Bojan Novković <bnovkov@FreeBSD.org> AuthorDate: 2025-04-10 10:54:49 +0000 Commit: Bojan Novković <bnovkov@FreeBSD.org> CommitDate: 2025-04-10 12:09:35 +0000 libc: fnmatch: Unwrap comma operator assignments Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D49756 Reviewed by: des --- lib/libc/gen/fnmatch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c index 43e7e214c3cb..1c583a9d23e2 100644 --- a/lib/libc/gen/fnmatch.c +++ b/lib/libc/gen/fnmatch.c @@ -152,8 +152,10 @@ fnmatch1(const char *pattern, const char *string, const char *stringstart, * there is no way having it match more characters * can help us, given that we are already here. */ - bt_pattern = pattern, bt_patmbs = patmbs; - bt_string = string, bt_strmbs = strmbs; + bt_pattern = pattern; + bt_patmbs = patmbs; + bt_string = string; + bt_strmbs = strmbs; break; case '[': if (sc == EOS)