We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6465a4 commit 6024d63Copy full SHA for 6024d63
src/mod_pascal.pas
@@ -185,6 +185,13 @@ TPascalModuleCfg = record
185
//TODO: not very performant string operation. lot of string copies.
186
//need to improve by avoiding it
187
headerMarkerPos := pos(LineEnding+LineEnding, compileOutput);
188
+
189
+ if headerMarkerPos = 0 then
190
+ begin
191
+ //no header found
192
+ exit;
193
+ end;
194
195
headerParts := copy(compileOutput, 1, headerMarkerPos - 1);
196
headers := headerParts.split(LineEnding);
197
for i:= 0 to Length(headers) - 1 do
0 commit comments