Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libnvpair.c: replace strstr() with strchr() for a single character
Since we're looking for a single new-line character in the haystack, it's better (and slightly more efficient) to use strchr() instead of strstr(). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Richard Yao <[email protected]> Signed-off-by: rilysh <[email protected]> Closes openzfs#15798
- Loading branch information