From 03a6d355e21cce5443c716fbf88b6289021dfa25 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 20 Mar 2015 03:31:32 +0100 Subject: [PATCH] fix, possible AV if opt is empty --- src/ce_dmdwrap.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ce_dmdwrap.pas b/src/ce_dmdwrap.pas index 71f67491..1ce0a551 100644 --- a/src/ce_dmdwrap.pas +++ b/src/ce_dmdwrap.pas @@ -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;