diff options
author | jkim <jkim@FreeBSD.org> | 2012-11-14 22:20:16 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-11-14 22:20:16 +0000 |
commit | 526bfcf905004d9b67338a445cb661a63c3de018 (patch) | |
tree | 2ffc551e57f0545a17c165d729c1438a26236f60 /source/compiler/prutils.c | |
parent | d8cd02b5b5893df382c08566087e32fe5b0c3abb (diff) | |
download | FreeBSD-src-526bfcf905004d9b67338a445cb661a63c3de018.zip FreeBSD-src-526bfcf905004d9b67338a445cb661a63c3de018.tar.gz |
Import ACPICA 20121114.
Diffstat (limited to 'source/compiler/prutils.c')
-rw-r--r-- | source/compiler/prutils.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/compiler/prutils.c b/source/compiler/prutils.c index 9ec851a..1502708 100644 --- a/source/compiler/prutils.c +++ b/source/compiler/prutils.c @@ -337,16 +337,17 @@ PrOpenIncludeWithPrefix ( /* Attempt to open the file, push if successful */ IncludeFile = fopen (Pathname, "r"); - if (IncludeFile) + if (!IncludeFile) { - /* Push the include file on the open input file stack */ - - PrPushInputFileStack (IncludeFile, Pathname); - return (IncludeFile); + fprintf (stderr, "Could not open include file %s\n", Pathname); + ACPI_FREE (Pathname); + return (NULL); } - ACPI_FREE (Pathname); - return (NULL); + /* Push the include file on the open input file stack */ + + PrPushInputFileStack (IncludeFile, Pathname); + return (IncludeFile); } |