From 7e633762669a9abf1c718f9a9494e3b2c86a4960 Mon Sep 17 00:00:00 2001
From: Jeff Young <jeff@rokeby.ie>
Date: Mon, 3 Aug 2020 22:16:53 +0100
Subject: [PATCH] Fix typo in DRC rule error reporting that causes crash.

---
 common/libeval_compiler/libeval_compiler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/libeval_compiler/libeval_compiler.cpp b/common/libeval_compiler/libeval_compiler.cpp
index 5509e0af65..4ea628a069 100644
--- a/common/libeval_compiler/libeval_compiler.cpp
+++ b/common/libeval_compiler/libeval_compiler.cpp
@@ -772,7 +772,7 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
             if( !vref )
             {
                 msg.Printf( _( "Unrecognized item '%s'" ), node->value.str );
-                reportError( msg, node->leaf[0]->srcPos - (int) strlen( node->value.str  ) );
+                reportError( msg, node->srcPos - (int) strlen( node->value.str  ) );
                 return false;
             }