mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 20:20:16 +02:00
* fixed missing function result initialisation in
TFPMimeTypes.GetMimeExtensions() and TFPMimeTypes.GetMimeType() (mantis #25003) git-svn-id: trunk@26145 -
This commit is contained in:
parent
4a8d7f8ce9
commit
017c895c37
@ -266,7 +266,9 @@ Var
|
||||
begin
|
||||
T:=FindMimeByType(AMimeType);
|
||||
if Assigned(T) then
|
||||
Result:=T.Extensions;
|
||||
Result:=T.Extensions
|
||||
else
|
||||
Result:='';
|
||||
end;
|
||||
|
||||
function TFPMimeTypes.GetMimeType(const AExtension: String): String;
|
||||
@ -276,7 +278,9 @@ Var
|
||||
begin
|
||||
T:=FindMimeByExt(AExtension);
|
||||
if Assigned(T) then
|
||||
Result:=T.MimeType;
|
||||
Result:=T.MimeType
|
||||
else
|
||||
Result:='';
|
||||
end;
|
||||
|
||||
function TFPMimeTypes.GetKnownMimeTypes(AList: TStrings): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user