]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephfs-journal-tool: fix crash with empty argv
authorXiubo Li <xiubli@redhat.com>
Tue, 31 Dec 2019 06:57:51 +0000 (01:57 -0500)
committerXiubo Li <xiubli@redhat.com>
Wed, 1 Jan 2020 01:29:59 +0000 (20:29 -0500)
commit2e38246ba24ddf48afa6c3a631e3aaa5e5743c93
treef2cc918d70af3a6ee90cee4d3aa123843327532f
parent2ca2221ddbd600c0a0213b81a95c30a6c4f2163d
cephfs-journal-tool: fix crash with empty argv

If the argument is empty, it will be better to give a hint
instead of crashing.

Fixes: https://tracker.ceph.com/issues/43438
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/tools/cephfs/JournalTool.cc