Update uaccentsutils.pas

This commit is contained in:
Alexander Koblov 2026-05-21 09:54:59 +03:00 committed by GitHub
commit 62d103056f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,7 +107,7 @@ var
AReplacementString: String;
begin
if sInput = '' then
Exit;
Exit('');
AAllocatedBufferSize := Length(sInput) * 2; // worst scenario: every character expands (e.g., 'œ' -> 'oe' doubles length)
SetLength(Result, AAllocatedBufferSize);
AOutputBufferPointer := PChar(Result);