summaryrefslogtreecommitdiff
path: root/source/compiler/cvparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/cvparser.c')
-rw-r--r--source/compiler/cvparser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/compiler/cvparser.c b/source/compiler/cvparser.c
index cdb165dc1daf..060e8aedec9c 100644
--- a/source/compiler/cvparser.c
+++ b/source/compiler/cvparser.c
@@ -215,7 +215,7 @@ CvIsFilename (
for(i = 0; i<Length; ++i)
{
- if (!isprint (Filename[i]))
+ if (!isprint ((int) Filename[i]))
{
return FALSE;
}
@@ -440,6 +440,11 @@ CvFilenameExists(
ACPI_FILE_NODE *Current = Head;
+ if (!Filename)
+ {
+ return (NULL);
+ }
+
while (Current)
{
if (!AcpiUtStricmp (Current->Filename, Filename))