From 3333c6bcd539acd5f3eb069120a6541bd7712c7f Mon Sep 17 00:00:00 2001 From: aystarik <aystarik> Date: Wed, 29 Jun 2005 19:22:01 +0000 Subject: [PATCH] Comment update date 2004.10.13.20.54.00; author rmoore1; state Exp; --- source/components/utilities/utobject.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/components/utilities/utobject.c b/source/components/utilities/utobject.c index de180ff4e..a0d382d0d 100644 --- a/source/components/utilities/utobject.c +++ b/source/components/utilities/utobject.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: utobject - ACPI object create/delete/size/cache routines - * $Revision: 1.88 $ + * $Revision: 1.89 $ * *****************************************************************************/ @@ -287,7 +287,7 @@ AcpiUtCreateStringObject ( ACPI_SIZE StringSize) { ACPI_OPERAND_OBJECT *StringDesc; - char *String = NULL; + char *String; ACPI_FUNCTION_TRACE_U32 ("UtCreateStringObject", StringSize); @@ -301,8 +301,10 @@ AcpiUtCreateStringObject ( return_PTR (NULL); } - /* Allocate the actual string buffer -- (Size + 1) for NULL terminator */ - + /* + * Allocate the actual string buffer -- (Size + 1) for NULL terminator. + * NOTE: Zero-length strings are NULL terminated + */ String = ACPI_MEM_CALLOCATE (StringSize + 1); if (!String) {