aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2019-06-21 10:31:53 +0900
committerBrian Behlendorf <[email protected]>2019-06-20 18:31:52 -0700
commit9585497208266a917513754f887d9db35efdcec7 (patch)
tree8f6c5797f5b407d804bd2c22efe601e799e10bb4 /cmd
parentaccd6d9dc411b150d5313b2e777381f13da8861b (diff)
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 #8924 Closes #8940
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions