* Correct check

This commit is contained in:
Michaël Van Canneyt 2025-03-21 14:06:14 +01:00
parent 04a31f8be2
commit 36e65b3464

View File

@ -1242,7 +1242,7 @@ implementation
function tstringconstnode.asconstpchar: pchar; function tstringconstnode.asconstpchar: pchar;
begin begin
if len>0 then if length(valueas)>0 then
Result:=@valueas[0] Result:=@valueas[0]
else else
Result:=@cEmptyString; Result:=@cEmptyString;