Skip to contentSkip to conversation

Fix memory allocation size and error message in backup_init

PATCH New Takahiro Yasui 2 participants 2 messages Mar 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix memory allocation size and error message in backup_init

Hi,

This patch fixes the memory allocation size and the error message in backup_init function.

Regards,
---
Takahiro Yasui
Hitachi Computer Products (America), Inc.

---
 lib/format_text/archiver.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/format_text/archiver.c +2 -2
Index: LVM2.02.46-20090316/lib/format_text/archiver.c
===================================================================
@@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd,
 		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;
 	}
 
#1 lore raw

PATCH 1/1 Fix memory allocation size and error message in backup_init

Quoted 2 lines · Takahiro Yasui

This patch fixes the memory allocation size and the error message in backup_init function.

Ack

Alasdair

Signature · 1 line
agk at redhat.com