From: taka Date: Mon, 23 Mar 2009 21:56:32 +0000 (+0000) Subject: Fix size and error message of memory allocation at backup initialization. X-Git-Tag: old-v2_02_46~103 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=afcc447a645753a5afe029daa2ffc5ffb2084b04;p=lvm2.git Fix size and error message of memory allocation at backup initialization. Author: Takahiro Yasui --- diff --git a/WHATS_NEW b/WHATS_NEW index 0d09ba696..a947e5868 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -8,6 +8,7 @@ Version 2.02.46 - Flush memory pool and fix locking in clvmd refresh and backup command. Fix unlocks in clvmd-corosync. Broken in 2.02.45. Fix error message when adding metadata directory to internal list fails. + Fix size and error message of memory allocation at backup initialization. Version 2.02.45 - 3rd March 2009 ================================ diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c index 0406ae504..7e92de3a5 100644 --- a/lib/format_text/archiver.c +++ b/lib/format_text/archiver.c @@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd, const char *dir, int enabled) { if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem, - sizeof(*cmd->archive_params)))) { - log_error("archive_params alloc failed"); + sizeof(*cmd->backup_params)))) { + log_error("backup_params alloc failed"); return 0; }