mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:09:27 +02:00
Avoid referencing an empty ansistring in tai_stabs.create_ansistr
git-svn-id: trunk@28990 -
This commit is contained in:
parent
4f43987f93
commit
0d9783e9a6
@ -2187,7 +2187,10 @@ implementation
|
||||
typ:=ait_stab;
|
||||
stabtype:=_stabtype;
|
||||
getmem(str,length(s)+1);
|
||||
move(s[1],str^,length(s)+1);
|
||||
if length(s)>0 then
|
||||
move(s[1],str^,length(s)+1)
|
||||
else
|
||||
str^:=#0;
|
||||
end;
|
||||
|
||||
destructor tai_stab.destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user