]> sourceware.org Git - lvm2.git/commitdiff
Fix size and error message of memory allocation at backup initialization.
authortaka <taka>
Mon, 23 Mar 2009 21:56:32 +0000 (21:56 +0000)
committertaka <taka>
Mon, 23 Mar 2009 21:56:32 +0000 (21:56 +0000)
Author: Takahiro Yasui <tyasui@redhat.com>

WHATS_NEW
lib/format_text/archiver.c

index 0d09ba69642720774ffa5ed030d42b2900e19d59..a947e586802624e6f08035f3df20ec173bac4360 100644 (file)
--- 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
 ================================
index 0406ae504dfcde19cfe0283ba360527b2567d8b0..7e92de3a5f85e2ab14014d98b52a53a8349d898c 100644 (file)
@@ -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;
        }
 
This page took 0.047651 seconds and 5 git commands to generate.