mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 02:50:44 +01:00
* always allocate argument even if its empty (bugfix web bug #2202)
This commit is contained in:
parent
1d3e450412
commit
002a5e009a
@ -696,8 +696,9 @@ var
|
||||
sysreallocmem(argv,argvlen*sizeof(pointer));
|
||||
end;
|
||||
{ use realloc to reuse already existing memory }
|
||||
if len<>0 then
|
||||
sysreallocmem(argv[idx],len+1);
|
||||
{ always allocate, even if length is zero, since }
|
||||
{ the arg. is still present! }
|
||||
sysreallocmem(argv[idx],len+1);
|
||||
end;
|
||||
|
||||
begin
|
||||
@ -1498,7 +1499,10 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.35 2002-10-14 20:40:22 florian
|
||||
Revision 1.36 2002-10-31 15:17:58 carl
|
||||
* always allocate argument even if its empty (bugfix web bug 2202)
|
||||
|
||||
Revision 1.35 2002/10/14 20:40:22 florian
|
||||
* InitFPU renamed to SysResetFPU
|
||||
|
||||
Revision 1.34 2002/10/14 19:39:17 peter
|
||||
|
||||
Loading…
Reference in New Issue
Block a user