summaryrefslogtreecommitdiff
path: root/source/compiler/aslparseop.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslparseop.c')
-rw-r--r--source/compiler/aslparseop.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/compiler/aslparseop.c b/source/compiler/aslparseop.c
index 8fa99f3e6c2c..59a54864eeb7 100644
--- a/source/compiler/aslparseop.c
+++ b/source/compiler/aslparseop.c
@@ -403,22 +403,22 @@ TrCreateValuedLeafOp (
{
case PARSEOP_STRING_LITERAL:
- DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Value);
+ DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Op->Asl.Value.String);
break;
case PARSEOP_NAMESEG:
- DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Value);
+ DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Op->Asl.Value.String);
break;
case PARSEOP_NAMESTRING:
- DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Value);
+ DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Op->Asl.Value.String);
break;
case PARSEOP_EISAID:
- DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Value);
+ DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Op->Asl.Value.String);
break;
case PARSEOP_METHOD:
@@ -693,7 +693,8 @@ TrCreateConstantLeafOp (
time_t CurrentTime;
char *StaticTimeString;
char *TimeString;
- char *Filename;
+ char *Filename = NULL;
+ ACPI_STATUS Status;
switch (ParseOpcode)
@@ -727,7 +728,12 @@ TrCreateConstantLeafOp (
/* Get the simple filename from the full path */
- FlSplitInputPathname (Op->Asl.Filename, NULL, &Filename);
+ Status = FlSplitInputPathname (Op->Asl.Filename, NULL, &Filename);
+ if (ACPI_FAILURE (Status))
+ {
+ return (NULL);
+ }
+
Op->Asl.Value.String = Filename;
break;