diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2020-04-30 23:40:36 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2020-04-30 23:40:36 +0000 |
commit | a95d9dd0e22ace9a8f960e939af923c79e7a271e (patch) | |
tree | 99b9b07bd34bc3ebedbbeeaff97882b0e0778346 /source/compiler/dtutils.c | |
parent | a117a0a6c82c5a5030040bd2b75704a1366741d6 (diff) |
Notes
Diffstat (limited to 'source/compiler/dtutils.c')
-rw-r--r-- | source/compiler/dtutils.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/compiler/dtutils.c b/source/compiler/dtutils.c index bb07894e2813..55093a7676a6 100644 --- a/source/compiler/dtutils.c +++ b/source/compiler/dtutils.c @@ -186,11 +186,20 @@ DtError ( DT_FIELD *FieldObject, char *ExtraMessage) { + UINT32 Line = 0; + + + /* Field object could be NULL */ + + if (FieldObject) + { + Line = FieldObject->Line; + } /* Check if user wants to ignore this exception */ if (AslIsExceptionIgnored (AslGbl_Files[ASL_FILE_INPUT].Filename, - FieldObject->Line, Level, MessageId)) + Line, Level, MessageId)) { return; } |