From a6028f7332dbf61541a4482e402bf346dad53118 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 17 Oct 2013 00:06:42 +0000 Subject: Import ACPICA 20130927. --- source/compiler/aslerror.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/compiler/aslerror.c') diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c index 06160401303c..d0e8e03bc060 100644 --- a/source/compiler/aslerror.c +++ b/source/compiler/aslerror.c @@ -611,7 +611,6 @@ AslCommonError ( char *Filename, char *ExtraMessage) { - UINT32 MessageSize; char *MessageBuffer = NULL; ASL_ERROR_MSG *Enode; @@ -622,8 +621,7 @@ AslCommonError ( { /* Allocate a buffer for the message and a new error node */ - MessageSize = strlen (ExtraMessage) + 1; - MessageBuffer = UtLocalCalloc (MessageSize); + MessageBuffer = UtLocalCalloc (strlen (ExtraMessage) + 1); /* Keep a copy of the extra message */ -- cgit v1.2.3