]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/string/strchr/: strnul(): Simplify implementation
authorAlejandro Colomar <alx@kernel.org>
Thu, 19 Feb 2026 01:01:09 +0000 (02:01 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 28 Feb 2026 03:03:40 +0000 (21:03 -0600)
commitea80db6e1591708ea2964c4f63fadf0f95c623fe
treee617e42b9786a68c3647f2085d81edcb4a2d0850
parent25d44fc070e3671f217d9bf6762dde5cb701b5df
lib/string/strchr/: strnul(): Simplify implementation

This avoids an __auto_type local variable, and a GNU statement
expression.

Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/string/strchr/strnul.h