diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-11-14 22:20:16 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-11-14 22:20:16 +0000 |
commit | c2463a8709e5b3a5ce54c09d35b4820a756b0fc5 (patch) | |
tree | 2ffc551e57f0545a17c165d729c1438a26236f60 /source/compiler/prutils.c | |
parent | 31aa864e8c068201d58aad3a8f82ddb51df11015 (diff) |
Notes
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 9ec851a90d99..15027088ffa4 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); } |