KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
82 stars 5 forks source link

`strim()` should use `__must_check` #337

Closed kees closed 1 year ago

kees commented 1 year ago

The return value from strim() is ignored in many places, which means intended left-side whitespace trimming isn't happening. Without __must_check it's unclear if an author intended to only right-trim or not.

kees commented 1 year ago

Nevermind, strstrip() should be used for those cases.