libc: fnmatch: Unwrap comma operator assignments

Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D49756
Reviewed by:	des
This commit is contained in:
Bojan Novković 2025-04-10 12:54:49 +02:00
parent 80e06d621a
commit 1be90fcda2

View file

@ -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)