diff --git a/compiler/cgbase.pas b/compiler/cgbase.pas index 954d6672b9..461ae422ba 100644 --- a/compiler/cgbase.pas +++ b/compiler/cgbase.pas @@ -645,6 +645,8 @@ implementation begin delete:=false; + if (system.length(buf)=0) then + exit; { indexword in 1.0.x and 1.9.4 is broken } i:=indexword(buf[0],length,s); if i<>-1 then