diff options
author | Alasdair G Kergon <agk@redhat.com> | 2016-06-21 22:24:52 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2016-06-21 22:24:52 +0100 |
commit | 7e671e5dd0af699244902d5ce71a7159253c9e2b (patch) | |
tree | ce14c9ff42cc60f8255a735dcae8f3e34ca1775e /tools/vgcfgbackup.c | |
parent | 6c269e639a121329fc035685f944816a763b23cf (diff) | |
download | lvm2-7e671e5dd0af699244902d5ce71a7159253c9e2b.tar.gz |
tools: Use arg_is_set instead of arg_count.
Diffstat (limited to 'tools/vgcfgbackup.c')
-rw-r--r-- | tools/vgcfgbackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcfgbackup.c b/tools/vgcfgbackup.c index 34fe08f65..a04c3abb2 100644 --- a/tools/vgcfgbackup.c +++ b/tools/vgcfgbackup.c @@ -54,7 +54,7 @@ static int vg_backup_single(struct cmd_context *cmd, const char *vg_name, char **last_filename = (char **)handle->custom_handle; char *filename; - if (arg_count(cmd, file_ARG)) { + if (arg_is_set(cmd, file_ARG)) { if (!(filename = _expand_filename(arg_value(cmd, file_ARG), vg->name, last_filename))) return_ECMD_FAILED; |