summaryrefslogtreecommitdiffstats
path: root/source/compiler/aslerror.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-10-17 00:06:42 +0000
committerjkim <jkim@FreeBSD.org>2013-10-17 00:06:42 +0000
commitf4a31baa14e08b26c3b63f02571280c872cabe90 (patch)
tree3908357b831dbb78c746f73c443b4d7ba5e966f9 /source/compiler/aslerror.c
parentb2a92415360aacb32d9b6107bdcf100d16d09167 (diff)
downloadFreeBSD-src-f4a31baa14e08b26c3b63f02571280c872cabe90.zip
FreeBSD-src-f4a31baa14e08b26c3b63f02571280c872cabe90.tar.gz
Import ACPICA 20130927.
Diffstat (limited to 'source/compiler/aslerror.c')
-rw-r--r--source/compiler/aslerror.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c
index 0616040..d0e8e03 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 */
OpenPOWER on IntegriCloud