mirror of
https://github.com/acpica/acpica/
synced 2025-01-16 14:29:18 +03:00
Fix for root node case.
date 2004.08.26.20.21.00; author rmoore1; state Exp;
This commit is contained in:
parent
348750d818
commit
1a8c01128f
@ -1,7 +1,7 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Module Name: nsnames - Name manipulation and search
|
||||
* $Revision: 1.83 $
|
||||
* $Revision: 1.85 $
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -281,7 +281,12 @@ AcpiNsGetPathnameLength (
|
||||
NextNode = AcpiNsGetParentNode (NextNode);
|
||||
}
|
||||
|
||||
return (Size + 1);
|
||||
if (!Size)
|
||||
{
|
||||
Size = 1; /* Root node case */
|
||||
}
|
||||
|
||||
return (Size + 1); /* +1 for null string terminator */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user