Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent pointer to an out-of-scope local variable
`show_str` could be a pointer to a local variable in stack which is out-of-scope by the time `return (snprintf(buf, buflen, "%s\n", show_str));` is called. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes openzfs#8924 Closes openzfs#8940
- Loading branch information