]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: fix seg_fault by cmd options in endurance_log
authorMinwoo Im <minwoo.im.dev@gmail.com>
Mon, 9 Apr 2018 17:21:27 +0000 (02:21 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Mon, 9 Apr 2018 17:21:27 +0000 (02:21 +0900)
commitc5a8bd22ca81977bfd02f0d6b083260e198399e7
treeab397b45cd4317a99655f2724b5f423ce18837b7
parent03a90b5e4067938d4a0ff84636f536fd939edd86
nvme-cli: fix seg_fault by cmd options in endurance_log

command_line_options[] might cause a segmentation fault if the last
option is not marked.  Make it mark NULL to show the end of the list.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c