fix, possible AV if opt is empty

This commit is contained in:
Basile Burg 2015-03-20 03:31:32 +01:00
parent a85aeb8172
commit 03a6d355e2
1 changed files with 3 additions and 2 deletions

View File

@ -589,8 +589,9 @@ begin
if fMain then aList.Add('-main');
if fRelease then aList.Add('-release');
for opt in fVerIds do begin
if opt[1] = ';' then
continue;
if length(opt) > 0 then
if opt[1] = ';' then
continue;
if length(opt) > 1 then
if opt[1..2] = '//' then
continue;