master - cov: add internal error for impossible code path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b8c729efd094146437c3ed5b336b929608401535 Commit: b8c729efd094146437c3ed5b336b929608401535 Parent: 794093722c657780171486dbfd8cd0ec392e4019 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Dec 9 22:55:25 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Dec 11 23:24:19 2016 +0100
cov: add internal error for impossible code path
--- tools/vgchange.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
tools/vgchange.c +5 -0
@@ -533,6 +533,11 @@ static int _vgchange_locktype(struct cmd_context *cmd,struct logical_volume *lv;int lv_lock_count =0 ; +if (!lock_type) { +log_error (INTERNAL_ERROR "No locktype_ARG." ); +return 0 ; + } +/* * This is a special/forced exception to change the lock type to none. * It's needed for recovery cases and skips the normal steps of undoing