mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 06:38:00 +02:00
* Correct check
This commit is contained in:
parent
04a31f8be2
commit
36e65b3464
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user